Package org.eclipse.cdt.core
Interface IBinaryParser
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
- All Known Implementing Classes:
CygwinPEParser,CygwinPEParser64,ElfParser,GNUElfParser,MachOParser,MachOParser64,PEParser,PEParser64,SOMParser,XCOFF32Parser
public interface IBinaryParser extends org.eclipse.core.runtime.IAdaptable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIBinaryParser.IBinaryArchiveRepresents an archive.static interfaceIBinaryParser.IBinaryExecutableAn executable.static interfaceIBinaryParser.IBinaryFileRepresents a binary file for example an ELF executable.static interfaceIBinaryParser.IBinaryObjectRepresents a binary, for example an ELF excutable.static interfaceIBinaryParser.IBinarySharedA DLL.static interfaceIBinaryParser.ISymbol
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IBinaryParser.IBinaryFilegetBinary(byte[] hints, org.eclipse.core.runtime.IPath path)Creates an IBinaryFile.IBinaryParser.IBinaryFilegetBinary(org.eclipse.core.runtime.IPath path)Creates an IBinaryFile.StringgetFormat()Returns the name of the Format.intgetHintBufferSize()Get a hint of the needed buffer size to recognize the file.booleanisBinary(byte[] hints, org.eclipse.core.runtime.IPath path)True if the resource is a binary.
-
-
-
Method Detail
-
getBinary
IBinaryParser.IBinaryFile getBinary(byte[] hints, org.eclipse.core.runtime.IPath path) throws IOException
Creates an IBinaryFile.- Parameters:
hints- - array byte that can be use to recognise the file. Can be null or empty array when no hints are passed.path-- Throws:
IOException
-
getBinary
IBinaryParser.IBinaryFile getBinary(org.eclipse.core.runtime.IPath path) throws IOException
Creates an IBinaryFile.- Parameters:
path-- Throws:
IOException
-
getFormat
String getFormat()
Returns the name of the Format.
-
isBinary
boolean isBinary(byte[] hints, org.eclipse.core.runtime.IPath path)True if the resource is a binary.- Parameters:
hints-path-
-
getHintBufferSize
int getHintBufferSize()
Get a hint of the needed buffer size to recognize the file.
-
-