Package org.eclipse.cdt.core
Interface IBinaryParser.IBinaryFile
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
- All Known Subinterfaces:
IBinaryParser.IBinaryArchive,IBinaryParser.IBinaryExecutable,IBinaryParser.IBinaryObject,IBinaryParser.IBinaryShared
- All Known Implementing Classes:
BinaryFile,BinaryObjectAdapter,CygwinPEBinaryArchive,CygwinPEBinaryArchive64,CygwinPEBinaryExecutable,CygwinPEBinaryExecutable64,CygwinPEBinaryObject,CygwinPEBinaryObject64,CygwinPEBinaryShared,CygwinPEBinaryShared64,ElfBinaryArchive,ElfBinaryExecutable,ElfBinaryObject,ElfBinaryShared,GNUElfBinaryArchive,GNUElfBinaryExecutable,GNUElfBinaryObject,GNUElfBinaryShared,MachOBinaryArchive,MachOBinaryArchive64,MachOBinaryExecutable,MachOBinaryExecutable64,MachOBinaryObject,MachOBinaryObject64,MachOBinaryShared,MachOBinaryShared64,PEBinaryArchive,PEBinaryArchive64,PEBinaryExecutable,PEBinaryExecutable64,PEBinaryObject,PEBinaryObject64,PEBinaryShared,PEBinaryShared64,SOMBinaryArchive,SOMBinaryExecutable,SOMBinaryObject,SOMBinaryShared,XCOFFBinaryArchive,XCOFFBinaryExecutable,XCOFFBinaryObject,XCOFFBinaryShared
- Enclosing interface:
- IBinaryParser
public static interface IBinaryParser.IBinaryFile extends org.eclipse.core.runtime.IAdaptableRepresents a binary file for example an ELF executable.
-
-
Field Summary
Fields Modifier and Type Field Description static intARCHIVEBinary is an archive, IBinaryArchivestatic intCOREBinary is a core file, an IBinaryFilestatic intEXECUTABLEBinary is an executable, can be typecast to IBinaryExectuablestatic intOBJECTBinary is an object, can be safely typecast to IBinaryObjectstatic intSHAREDBinary is a DLL, can be use as a IBinaryShared
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IBinaryParsergetBinaryParser()Return the binary parserInputStreamgetContents()org.eclipse.core.runtime.IPathgetPath()Filename of the binaryintgetType()Binary type
-
-
-
Field Detail
-
OBJECT
static final int OBJECT
Binary is an object, can be safely typecast to IBinaryObject- See Also:
- Constant Field Values
-
EXECUTABLE
static final int EXECUTABLE
Binary is an executable, can be typecast to IBinaryExectuable- See Also:
- Constant Field Values
-
SHARED
static final int SHARED
Binary is a DLL, can be use as a IBinaryShared- See Also:
- Constant Field Values
-
ARCHIVE
static final int ARCHIVE
Binary is an archive, IBinaryArchive- See Also:
- Constant Field Values
-
CORE
static final int CORE
Binary is a core file, an IBinaryFile- See Also:
- Constant Field Values
-
-
Method Detail
-
getPath
org.eclipse.core.runtime.IPath getPath()
Filename of the binary- Returns:
- the path
-
getType
int getType()
Binary type- Returns:
- the type of the binary
-
getContents
InputStream getContents() throws IOException
- Returns:
- the binary contents.
- Throws:
IOException
-
getBinaryParser
IBinaryParser getBinaryParser()
Return the binary parser
-
-