public class PE64 extends Object
+-------------------+ | DOS-stub | +-------------------+ | file-header | +-------------------+ | optional header | |- - - - - - - - - -| | | | data directories | | | +-------------------+ | | | section headers | | | +-------------------+ | | | section 1 | | | +-------------------+ | | | section 2 | | | +-------------------+ | | | ... | | | +-------------------+ | | | section n | | | +-------------------+
Modifier and Type | Class and Description |
---|---|
static class |
PE64.Attribute |
static class |
PE64.DOSHeader |
static class |
PE64.IMAGE_DATA_DIRECTORY |
static class |
PE64.IMAGE_DEBUG_DIRECTORY |
class |
PE64.ImageDataDirectory |
class |
PE64.ImportDirectoryEntry |
static class |
PE64.NTOptionalHeader32 |
static class |
PE64.NTOptionalHeader64 |
Constructor and Description |
---|
PE64(String filename) |
PE64(String filename,
long pos) |
PE64(String filename,
long pos,
boolean filter) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected void |
finalize() |
PE64.Attribute |
getAttribute() |
static PE64.Attribute |
getAttribute(byte[] data) |
static PE64.Attribute |
getAttribute(String file) |
static PE64.Attribute |
getAttributes(Coff64.FileHeader filhdr) |
PE64.DOSHeader |
getDOSHeader() |
Exe.ExeHeader |
getExeHeader() |
Coff64.FileHeader |
getFileHeader() |
String |
getFilename() |
PE64.ImageDataDirectory[] |
getImageDataDirectories() |
PE64.NTOptionalHeader32 |
getNTOptionalHeader32() |
PE64.NTOptionalHeader64 |
getNTOptionalHeader64() |
Coff64.OptionalHeader |
getOptionalHeader() |
Coff64.SectionHeader[] |
getSectionHeaders() |
byte[] |
getStringTable() |
String |
getStringTableEntry(int offset) |
ISymbolReader |
getSymbolReader() |
Coff64.Symbol[] |
getSymbols() |
static boolean |
isExeHeader(byte[] e_signature) |
static boolean |
isValidMachine(int magic) |
String |
toString() |
public static final String NL
public PE64(String filename) throws IOException
IOException
public PE64(String filename, long pos) throws IOException
IOException
public PE64(String filename, long pos, boolean filter) throws IOException
IOException
public static boolean isValidMachine(int magic)
public static PE64.Attribute getAttributes(Coff64.FileHeader filhdr)
public static boolean isExeHeader(byte[] e_signature)
public PE64.Attribute getAttribute() throws IOException
IOException
public static PE64.Attribute getAttribute(byte[] data) throws IOException
IOException
public static PE64.Attribute getAttribute(String file) throws IOException
IOException
public void dispose() throws IOException
IOException
protected void finalize() throws Throwable
public Exe.ExeHeader getExeHeader()
public PE64.DOSHeader getDOSHeader()
public Coff64.FileHeader getFileHeader()
public Coff64.OptionalHeader getOptionalHeader()
public PE64.NTOptionalHeader64 getNTOptionalHeader64()
public PE64.NTOptionalHeader32 getNTOptionalHeader32()
public PE64.ImageDataDirectory[] getImageDataDirectories() throws IOException
IOException
public Coff64.SectionHeader[] getSectionHeaders() throws IOException
IOException
public Coff64.Symbol[] getSymbols() throws IOException
IOException
public byte[] getStringTable() throws IOException
IOException
public ISymbolReader getSymbolReader()
public String getStringTableEntry(int offset) throws IOException
IOException
public String getFilename()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.