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
IOExceptionpublic PE64(String filename, long pos) throws IOException
IOExceptionpublic PE64(String filename, long pos, boolean filter) throws IOException
IOExceptionpublic 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
IOExceptionpublic static PE64.Attribute getAttribute(byte[] data) throws IOException
IOExceptionpublic static PE64.Attribute getAttribute(String file) throws IOException
IOExceptionpublic void dispose()
throws IOException
IOExceptionprotected 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
IOExceptionpublic Coff64.SectionHeader[] getSectionHeaders() throws IOException
IOExceptionpublic Coff64.Symbol[] getSymbols() throws IOException
IOExceptionpublic byte[] getStringTable()
throws IOException
IOExceptionpublic ISymbolReader getSymbolReader()
public String getStringTableEntry(int offset) throws IOException
IOExceptionpublic String getFilename()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.