Package ghidra.app.util.bin.format.omf
Class AbstractOmfRecordFactory
java.lang.Object
ghidra.app.util.bin.format.omf.AbstractOmfRecordFactory
- Direct Known Subclasses:
Omf51RecordFactory,OmfRecordFactory
Classes that implement this interface can read various flavors of the OMF format
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOmfRecordFactory(BinaryReader reader) Creates a newAbstractOmfRecordFactory -
Method Summary
Modifier and TypeMethodDescriptionabstract intGets a valid record type that can end a supported OMF binaryReturns the reader associated with this factory.Gets aListof valid record types that can start a supported OMF binaryabstract OmfRecordReads the nextOmfRecordpointed to by the readervoidreset()Reset this factory's reader to index 0
-
Field Details
-
reader
-
-
Constructor Details
-
AbstractOmfRecordFactory
Creates a newAbstractOmfRecordFactory- Parameters:
reader- TheBinaryReaderused to read records
-
-
Method Details
-
readNextRecord
Reads the nextOmfRecordpointed to by the reader- Returns:
- The next read
OmfRecord - Throws:
IOException- if there was an IO-related errorOmfException- if there was a problem with the OMF specification
-
getStartRecordTypes
Gets aListof valid record types that can start a supported OMF binary- Returns:
- A
Listof 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
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
-