Class IrDecoder

java.lang.Object
uk.co.real_logic.sbe.ir.IrDecoder
All Implemented Interfaces:
AutoCloseable

public class IrDecoder extends Object implements AutoCloseable
Decoder for encoded Ir representing an SBE schema which can be read from a buffer or file.
  • Constructor Details

    • IrDecoder

      public IrDecoder(String fileName)
      Construct a Ir decoder by opening a file for a given name.
      Parameters:
      fileName - containing the encoded Ir.
    • IrDecoder

      public IrDecoder(ByteBuffer buffer)
      Construct a Ir decoder for data encoded in a ByteBuffer.
      Parameters:
      buffer - containing the serialised Ir.
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • decode

      public Ir decode()
      Decode the serialised Ir and return the decoded instance.
      Returns:
      the decoded serialised Ir instance.