APIdia Launch Partner
Top Fields Methods
sun.jvm.hotspot.debugger.posix.elf

public Interface ELFFile

Known Direct Implementers
sun.jvm.hotspot.debugger.posix.elf.ELFFileParser.ELFFileImpl

Field Summary

Modifier and TypeField and Description
public static final byte
CLASS_32

32-bit objects.

public static final byte
CLASS_64

64-bit objects.

public static final byte
public static final byte
DATA_INVALID

No data encoding.

public static final byte
DATA_LSB

LSB data encoding.

public static final byte
DATA_MSB

MSB data encoding.

public static final byte[]
ELF_MAGIC_NUMBER

ELF magic number.

public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
VERSION_CURRENT

Current ELF header version.

public static final byte
VERSION_INVALID

No ELF header version.

Method Summary

Modifier and TypeMethod and Description
public void
public byte
getEncoding()

Returns a byte identifying the data encoding of the processor specific data.

public ELFHeader
public byte[]
getMagicNumber()

Returns the 4 byte magic number for this file.

public byte
getObjectSize()

Returns a byte identifying the size of objects used for this ELF file.

public byte
getVersion()

Returns one of the version constants.

Field Detail

CLASS_32back to summary
public static final byte CLASS_32

32-bit objects.

CLASS_64back to summary
public static final byte CLASS_64

64-bit objects.

CLASS_INVALIDback to summary
public static final byte CLASS_INVALID
DATA_INVALIDback to summary
public static final byte DATA_INVALID

No data encoding.

DATA_LSBback to summary
public static final byte DATA_LSB

LSB data encoding.

DATA_MSBback to summary
public static final byte DATA_MSB

MSB data encoding.

ELF_MAGIC_NUMBERback to summary
public static final byte[] ELF_MAGIC_NUMBER

ELF magic number.

NDX_ENCODINGback to summary
public static final byte NDX_ENCODING
NDX_MAGIC_0back to summary
public static final byte NDX_MAGIC_0
NDX_MAGIC_1back to summary
public static final byte NDX_MAGIC_1
NDX_MAGIC_2back to summary
public static final byte NDX_MAGIC_2
NDX_MAGIC_3back to summary
public static final byte NDX_MAGIC_3
NDX_OBJECT_SIZEback to summary
public static final byte NDX_OBJECT_SIZE
NDX_VERSIONback to summary
public static final byte NDX_VERSION
VERSION_CURRENTback to summary
public static final byte VERSION_CURRENT

Current ELF header version.

VERSION_INVALIDback to summary
public static final byte VERSION_INVALID

No ELF header version.

Method Detail

closeback to summary
public void close()
getEncodingback to summary
public byte getEncoding()

Returns a byte identifying the data encoding of the processor specific data. This byte will be either DATA_INVALID, DATA_LSB or DATA_MSB.

getHeaderback to summary
public ELFHeader getHeader()
getMagicNumberback to summary
public byte[] getMagicNumber()

Returns the 4 byte magic number for this file. This value should match the values in ELF_MAGIC_NUMBER.

getObjectSizeback to summary
public byte getObjectSize()

Returns a byte identifying the size of objects used for this ELF file. The byte will be either CLASS_INVALID, CLASS_32 or CLASS_64.

getVersionback to summary
public byte getVersion()

Returns one of the version constants. This should be VERSION_CURRENT.