Package org.eclipse.cdt.utils.coff
Class PE
- java.lang.Object
-
- org.eclipse.cdt.utils.coff.PE
-
- All Implemented Interfaces:
AutoCloseable
@Deprecated public class PE extends Object implements AutoCloseable
Deprecated.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.
-
Method Summary
-
-
-
Field Detail
-
NL
public static final String NL
Deprecated.
-
-
Constructor Detail
-
PE
public PE(String filename) throws IOException
Deprecated.- Throws:
IOException
-
PE
public PE(String filename, long pos) throws IOException
Deprecated.- Throws:
IOException
-
PE
public PE(String filename, long pos, boolean filter) throws IOException
Deprecated.- Throws:
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 IOException
Deprecated.- Throws:
IOException
-
getAttribute
public static PE.Attribute getAttribute(byte[] data) throws IOException
Deprecated.- Throws:
IOException
-
getAttribute
public static PE.Attribute getAttribute(String file) throws IOException
Deprecated.- Throws:
IOException
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
dispose
public void dispose() throws IOExceptionDeprecated.- Throws:
IOException
-
finalize
protected void finalize() throws ThrowableDeprecated.
-
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 IOException
Deprecated.- Throws:
IOException
-
getSectionHeaders
public Coff.SectionHeader[] getSectionHeaders() throws IOException
Deprecated.- Throws:
IOException
-
getSymbols
public Coff.Symbol[] getSymbols() throws IOException
Deprecated.- Throws:
IOException
-
getStringTable
public byte[] getStringTable() throws IOExceptionDeprecated.- Throws:
IOException
-
getSymbolReader
public ISymbolReader getSymbolReader()
Deprecated.
-
getStringTableEntry
public String getStringTableEntry(int offset) throws IOException
Deprecated.- Throws:
IOException- Since:
- 5.1
-
getFilename
public String getFilename()
Deprecated.- Since:
- 5.1
-
-