public class ElfParser extends AbstractCExtension implements IBinaryParser
IBinaryParser.IBinaryArchive, IBinaryParser.IBinaryExecutable, IBinaryParser.IBinaryFile, IBinaryParser.IBinaryObject, IBinaryParser.IBinaryShared, IBinaryParser.ISymbol| Constructor and Description |
|---|
ElfParser() |
| Modifier and Type | Method and Description |
|---|---|
protected IBinaryParser.IBinaryArchive |
createBinaryArchive(org.eclipse.core.runtime.IPath path) |
protected IBinaryParser.IBinaryObject |
createBinaryCore(org.eclipse.core.runtime.IPath path) |
protected IBinaryParser.IBinaryExecutable |
createBinaryExecutable(org.eclipse.core.runtime.IPath path) |
protected IBinaryParser.IBinaryObject |
createBinaryObject(org.eclipse.core.runtime.IPath path) |
protected IBinaryParser.IBinaryShared |
createBinaryShared(org.eclipse.core.runtime.IPath path) |
IBinaryParser.IBinaryFile |
getBinary(byte[] hints,
org.eclipse.core.runtime.IPath path)
Creates an IBinaryFile.
|
IBinaryParser.IBinaryFile |
getBinary(org.eclipse.core.runtime.IPath path)
Creates an IBinaryFile.
|
String |
getFormat()
Returns the name of the Format.
|
int |
getHintBufferSize()
Get a hint of the needed buffer size to recognize the file.
|
boolean |
isBinary(byte[] array,
org.eclipse.core.runtime.IPath path)
True if the resource is a binary.
|
getConfigExtensionReference, getExtensionReference, getProject, setExtensionReference, setExtensionReference, setProjectpublic IBinaryParser.IBinaryFile getBinary(org.eclipse.core.runtime.IPath path) throws IOException
IBinaryParsergetBinary in interface IBinaryParserIOExceptionpublic IBinaryParser.IBinaryFile getBinary(byte[] hints, org.eclipse.core.runtime.IPath path) throws IOException
IBinaryParsergetBinary in interface IBinaryParserhints - - array byte that can be use to recognise the file.
Can be null or empty array when no hints are passed.IOExceptionpublic String getFormat()
IBinaryParsergetFormat in interface IBinaryParserpublic boolean isBinary(byte[] array,
org.eclipse.core.runtime.IPath path)
IBinaryParserisBinary in interface IBinaryParserpublic int getHintBufferSize()
IBinaryParsergetHintBufferSize in interface IBinaryParserprotected IBinaryParser.IBinaryArchive createBinaryArchive(org.eclipse.core.runtime.IPath path) throws IOException
IOExceptionprotected IBinaryParser.IBinaryObject createBinaryObject(org.eclipse.core.runtime.IPath path) throws IOException
IOExceptionprotected IBinaryParser.IBinaryExecutable createBinaryExecutable(org.eclipse.core.runtime.IPath path) throws IOException
IOExceptionprotected IBinaryParser.IBinaryShared createBinaryShared(org.eclipse.core.runtime.IPath path) throws IOException
IOExceptionprotected IBinaryParser.IBinaryObject createBinaryCore(org.eclipse.core.runtime.IPath path) throws IOException
IOExceptionCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.