public class MachOHeaderDecoder extends Object implements HeaderDecoder
ENDIAN_BIG_ENDIAN, ENDIAN_INVALID, ENDIAN_LITTLE_ENDIAN, EXE_32BITS, EXE_64BITS, EXE_INVALID, EXE_UNIVERSAL| Constructor and Description |
|---|
MachOHeaderDecoder(File file)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getEndianness()
Return the executable endianness.
|
short |
getExecutableType()
Return the Mach-O File architecture.
|
public MachOHeaderDecoder(File file)
file - the Mach-O executable filepublic short getExecutableType()
HeaderDecoder.EXE_INVALID: the value for invalid Portable Executable Files (can not exist,
not being readable, or not being a valid Portable Executable File)HeaderDecoder.EXE_32BITS: the value for 32 bits executablesHeaderDecoder.EXE_64BITS: the value for 64 bits executablesHeaderDecoder.EXE_UNIVERSAL: the value for universal binaries executablesgetExecutableType in interface HeaderDecoderpublic short getEndianness()
HeaderDecoder.ENDIAN_INVALID: the value if the indianess could be be detectedHeaderDecoder.ENDIAN_LITTLE_ENDIAN: the value little-endian executable filesHeaderDecoder.ENDIAN_BIG_ENDIAN: the value big-endian executable filesgetEndianness in interface HeaderDecoder