public interface COFFHeader
Modifier and Type | Method and Description |
---|---|
short |
getCharacteristics()
Gets the union of all characteristics set for this object or
image file.
|
COFFSymbol |
getCOFFSymbol(int index)
Retrieves the COFF symbol at the given index, between 0 and
getNumberOfSymbols() - 1.
|
short |
getMachineType()
Returns one of the constants in
MachineTypes . |
short |
getNumberOfSections()
Number of sections; indicates size of the Section Table, which
immediately follows the headers.
|
int |
getNumberOfStrings()
Returns the number of strings in the String Table, which
immediately follows the COFF Symbol Table.
|
int |
getNumberOfSymbols()
Number of entries in the symbol table.
|
OptionalHeader |
getOptionalHeader()
Returns the optional header if one is present or null if not.
|
int |
getPointerToSymbolTable()
File offset of the COFF symbol table or 0 if none is present.
|
SectionHeader |
getSectionHeader(int index)
Retrieves the section header at the given index, between
1 and getNumberOfSections().
|
short |
getSizeOfOptionalHeader()
Size of the optional header, which is required for executable
files but not for object files.
|
java.lang.String |
getString(int i)
Retrieves the ith string (0..
getNumberOfStrings() - 1)
from the string table. |
int |
getTimeDateStamp()
Time and date the file was created.
|
boolean |
hasCharacteristic(short characteristic)
Indicates whether this file has the given characteristic.
|
short getMachineType()
MachineTypes
.short getNumberOfSections()
int getTimeDateStamp()
int getPointerToSymbolTable()
int getNumberOfSymbols()
short getSizeOfOptionalHeader()
OptionalHeader getOptionalHeader() throws COFFException
COFFException
short getCharacteristics()
Characteristics
.boolean hasCharacteristic(short characteristic)
Characteristics
.SectionHeader getSectionHeader(int index)
COFFSymbol getCOFFSymbol(int index)
int getNumberOfStrings()
java.lang.String getString(int i)
getNumberOfStrings()
- 1)
from the string table. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.