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
ConstructorsModifierConstructorDescriptionprotected
AbstractOmfRecordFactory
(BinaryReader reader) Creates a newAbstractOmfRecordFactory
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
Gets a valid record type that can end a supported OMF binaryReturns the reader associated with this factory.Gets aList
of valid record types that can start a supported OMF binaryabstract OmfRecord
Reads the nextOmfRecord
pointed to by the readervoid
reset()
Reset this factory's reader to index 0
-
Field Details
-
reader
-
-
Constructor Details
-
AbstractOmfRecordFactory
Creates a newAbstractOmfRecordFactory
- Parameters:
reader
- TheBinaryReader
used to read records
-
-
Method Details
-
readNextRecord
Reads the nextOmfRecord
pointed 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 aList
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
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
-