APIdia Launch Partner
Top Description Methods
sun.jvm.hotspot.debugger.win32.coff

public Interface COFFHeader

Known Direct Implementers
sun.jvm.hotspot.debugger.win32.coff.COFFFileParser.COFFFileImpl.COFFHeaderImpl

Models the information stored in the COFF header of either a Portable Executable or object file.

Method Summary

Modifier and TypeMethod and Description
public short
getCharacteristics()

Gets the union of all characteristics set for this object or image file.

public COFFSymbol
getCOFFSymbol(int index)

Retrieves the COFF symbol at the given index, between 0 and getNumberOfSymbols() - 1.

public short
public short
getNumberOfSections()

Number of sections; indicates size of the Section Table, which immediately follows the headers.

public int
getNumberOfStrings()

Returns the number of strings in the String Table, which immediately follows the COFF Symbol Table.

public int
getNumberOfSymbols()

Number of entries in the symbol table.

public OptionalHeader
getOptionalHeader()

Returns the optional header if one is present or null if not.

public int
getPointerToSymbolTable()

File offset of the COFF symbol table or 0 if none is present.

public SectionHeader
getSectionHeader(int index)

Retrieves the section header at the given index, between 1 and getNumberOfSections()

Note

This index is one-based, so the first section is numbered one, not zero.

public short
getSizeOfOptionalHeader()

Size of the optional header, which is required for executable files but not for object files.

public String
getString(int i)

Retrieves the ith string (0..

public int
getTimeDateStamp()

Time and date the file was created.

public boolean
hasCharacteristic(short characteristic)

Indicates whether this file has the given characteristic.

Method Detail

getCharacteristicsback to summary
public short getCharacteristics()

Gets the union of all characteristics set for this object or image file. See sun.jvm.hotspot.debugger.win32.coff.Characteristics.

getCOFFSymbolback to summary
public COFFSymbol getCOFFSymbol(int index)

Retrieves the COFF symbol at the given index, between 0 and getNumberOfSymbols() - 1. This is distinct from CodeView information.

getMachineTypeback to summary
public short getMachineType()

Returns one of the constants in sun.jvm.hotspot.debugger.win32.coff.MachineTypes.

getNumberOfSectionsback to summary
public short getNumberOfSections()

Number of sections; indicates size of the Section Table, which immediately follows the headers.

getNumberOfStringsback to summary
public int getNumberOfStrings()

Returns the number of strings in the String Table, which immediately follows the COFF Symbol Table.

getNumberOfSymbolsback to summary
public int getNumberOfSymbols()

Number of entries in the symbol table. This data can be used in locating the string table, which immediately follows the symbol table.

getOptionalHeaderback to summary
public OptionalHeader getOptionalHeader() throws COFFException

Returns the optional header if one is present or null if not.

getPointerToSymbolTableback to summary
public int getPointerToSymbolTable()

File offset of the COFF symbol table or 0 if none is present.

getSectionHeaderback to summary
public SectionHeader getSectionHeader(int index)

Retrieves the section header at the given index, between 1 and getNumberOfSections()

Note

This index is one-based, so the first section is numbered one, not zero.

getSizeOfOptionalHeaderback to summary
public short getSizeOfOptionalHeader()

Size of the optional header, which is required for executable files but not for object files. An object file should have a value of 0 here.

getStringback to summary
public String getString(int i)

Retrieves the ith string (0..getNumberOfStrings - 1) from the string table.

getTimeDateStampback to summary
public int getTimeDateStamp()

Time and date the file was created.

hasCharacteristicback to summary
public boolean hasCharacteristic(short characteristic)

Indicates whether this file has the given characteristic. The argument must be one of the constants specified in sun.jvm.hotspot.debugger.win32.coff.Characteristics.