Class AbstractOmfRecordFactory

java.lang.Object
ghidra.app.util.bin.format.omf.AbstractOmfRecordFactory
Direct Known Subclasses:
Omf51RecordFactory, OmfRecordFactory

public abstract class AbstractOmfRecordFactory extends Object
Classes that implement this interface can read various flavors of the OMF format
  • Field Details

  • Constructor Details

  • Method Details

    • readNextRecord

      public abstract OmfRecord readNextRecord() throws IOException, OmfException
      Reads the next OmfRecord pointed to by the reader
      Returns:
      The next read OmfRecord
      Throws:
      IOException - if there was an IO-related error
      OmfException - if there was a problem with the OMF specification
    • getStartRecordTypes

      public abstract List<Integer> getStartRecordTypes()
      Gets a List of valid record types that can start a supported OMF binary
      Returns:
      A List of valid record types that can start a supported OMF binary
    • getEndRecordType

      public abstract int getEndRecordType()
      Gets a valid record type that can end a supported OMF binary
      Returns:
      A valid record types that can end a supported OMF binary
    • getReader

      public BinaryReader getReader()
      Returns the reader associated with this factory.
      Returns:
      the reader associated with this factory
    • reset

      public void reset()
      Reset this factory's reader to index 0