Package org.eclipse.cdt.utils.coff
Class PE
- java.lang.Object
-
- org.eclipse.cdt.utils.coff.PE
-
- All Implemented Interfaces:
java.lang.AutoCloseable
@Deprecated public class PE extends java.lang.Object implements java.lang.AutoCloseableDeprecated.Deprecated as of CDT 6.9. Use 64 bit versionPE64. This class is planned for removal in next major release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPE.AttributeDeprecated.static classPE.DOSHeaderDeprecated.static classPE.IMAGE_DATA_DIRECTORYDeprecated.static classPE.IMAGE_DEBUG_DIRECTORYDeprecated.classPE.ImageDataDirectoryDeprecated.classPE.ImportDirectoryEntryDeprecated.static classPE.NTOptionalHeaderDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNLDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voiddispose()Deprecated.protected voidfinalize()Deprecated.PE.AttributegetAttribute()Deprecated.static PE.AttributegetAttribute(byte[] data)Deprecated.static PE.AttributegetAttribute(java.lang.String file)Deprecated.static PE.AttributegetAttributes(Coff.FileHeader filhdr)Deprecated.PE.DOSHeadergetDOSHeader()Deprecated.Exe.ExeHeadergetExeHeader()Deprecated.Coff.FileHeadergetFileHeader()Deprecated.java.lang.StringgetFilename()Deprecated.PE.ImageDataDirectory[]getImageDataDirectories()Deprecated.PE.NTOptionalHeadergetNTOptionalHeader()Deprecated.Coff.OptionalHeadergetOptionalHeader()Deprecated.Coff.SectionHeader[]getSectionHeaders()Deprecated.byte[]getStringTable()Deprecated.java.lang.StringgetStringTableEntry(int offset)Deprecated.ISymbolReadergetSymbolReader()Deprecated.Coff.Symbol[]getSymbols()Deprecated.static booleanisExeHeader(byte[] e_signature)Deprecated.static booleanisValidMachine(int magic)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
PE
public PE(java.lang.String filename) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
PE
public PE(java.lang.String filename, long pos) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
PE
public PE(java.lang.String filename, long pos, boolean filter) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
isValidMachine
public static boolean isValidMachine(int magic)
Deprecated.
-
getAttributes
public static PE.Attribute getAttributes(Coff.FileHeader filhdr)
Deprecated.
-
isExeHeader
public static boolean isExeHeader(byte[] e_signature)
Deprecated.
-
getAttribute
public PE.Attribute getAttribute() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getAttribute
public static PE.Attribute getAttribute(byte[] data) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getAttribute
public static PE.Attribute getAttribute(java.lang.String file) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
dispose
public void dispose() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
getExeHeader
public Exe.ExeHeader getExeHeader()
Deprecated.
-
getDOSHeader
public PE.DOSHeader getDOSHeader()
Deprecated.
-
getFileHeader
public Coff.FileHeader getFileHeader()
Deprecated.
-
getOptionalHeader
public Coff.OptionalHeader getOptionalHeader()
Deprecated.
-
getNTOptionalHeader
public PE.NTOptionalHeader getNTOptionalHeader()
Deprecated.
-
getImageDataDirectories
public PE.ImageDataDirectory[] getImageDataDirectories() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getSectionHeaders
public Coff.SectionHeader[] getSectionHeaders() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getSymbols
public Coff.Symbol[] getSymbols() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getStringTable
public byte[] getStringTable() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
getSymbolReader
public ISymbolReader getSymbolReader()
Deprecated.
-
getStringTableEntry
public java.lang.String getStringTableEntry(int offset) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException- Since:
- 5.1
-
getFilename
public java.lang.String getFilename()
Deprecated.- Since:
- 5.1
-
-