Package org.eclipse.cdt.utils
Class BinaryFile
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.utils.BinaryFile
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
BinaryObjectAdapter,ElfBinaryArchive,MachOBinaryArchive,MachOBinaryArchive64,PEBinaryArchive,PEBinaryArchive64,SOMBinaryArchive,XCOFFBinaryArchive
public abstract class BinaryFile extends org.eclipse.core.runtime.PlatformObject implements IBinaryParser.IBinaryFile
-
-
Field Summary
-
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
-
-
Constructor Summary
Constructors Constructor Description BinaryFile(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBinaryParsergetBinaryParser()Return the binary parserjava.io.InputStreamgetContents()org.eclipse.core.runtime.IPathgetPath()Filename of the binaryintgetType()Binary typeprotected booleanhasChanged()
-
-
-
Constructor Detail
-
BinaryFile
public BinaryFile(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
-
-
Method Detail
-
getBinaryParser
public final IBinaryParser getBinaryParser()
Description copied from interface:IBinaryParser.IBinaryFileReturn the binary parser- Specified by:
getBinaryParserin interfaceIBinaryParser.IBinaryFile
-
getPath
public final org.eclipse.core.runtime.IPath getPath()
Description copied from interface:IBinaryParser.IBinaryFileFilename of the binary- Specified by:
getPathin interfaceIBinaryParser.IBinaryFile- Returns:
- the path
- See Also:
IBinaryParser.IBinaryFile.getPath()
-
getType
public final int getType()
Description copied from interface:IBinaryParser.IBinaryFileBinary type- Specified by:
getTypein interfaceIBinaryParser.IBinaryFile- Returns:
- the type of the binary
- See Also:
IBinaryParser.IBinaryFile.getType()
-
getContents
public java.io.InputStream getContents() throws java.io.IOException- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Returns:
- the binary contents.
- Throws:
java.io.IOException- See Also:
IBinaryParser.IBinaryFile.getContents()
-
hasChanged
protected boolean hasChanged()
-
-