public class PEParser64 extends AbstractCExtension implements IBinaryParser
IBinaryParser.IBinaryArchive, IBinaryParser.IBinaryExecutable, IBinaryParser.IBinaryFile, IBinaryParser.IBinaryObject, IBinaryParser.IBinaryShared, IBinaryParser.ISymbol
Constructor and Description |
---|
PEParser64() |
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, setProject
public IBinaryParser.IBinaryFile getBinary(org.eclipse.core.runtime.IPath path) throws IOException
IBinaryParser
getBinary
in interface IBinaryParser
IOException
public IBinaryParser.IBinaryFile getBinary(byte[] hints, org.eclipse.core.runtime.IPath path) throws IOException
IBinaryParser
getBinary
in interface IBinaryParser
hints
- - array byte that can be use to recognise the file.
Can be null or empty array when no hints are passed.IOException
public String getFormat()
IBinaryParser
getFormat
in interface IBinaryParser
IBinaryParser.getFormat()
public boolean isBinary(byte[] array, org.eclipse.core.runtime.IPath path)
IBinaryParser
isBinary
in interface IBinaryParser
public int getHintBufferSize()
IBinaryParser
getHintBufferSize
in interface IBinaryParser
protected IBinaryParser.IBinaryExecutable createBinaryExecutable(org.eclipse.core.runtime.IPath path)
protected IBinaryParser.IBinaryObject createBinaryCore(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)
protected IBinaryParser.IBinaryArchive createBinaryArchive(org.eclipse.core.runtime.IPath path) throws IOException
IOException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.