Package com.jme3.export.binary
Class BinaryImporter
java.lang.Object
com.jme3.export.binary.BinaryImporter
- All Implemented Interfaces:
- AssetLoader,- JmeImporter
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleangetCapsule(Savable id) intReturns the version number written in the header of the J3O/XML file.static BinaryImporterload(byte[] data) Loads asset from the given input stream, parsing it into an application-usable object.load(File f, ReadListener listener) load(InputStream is) load(InputStream is, ReadListener listener) load(InputStream is, ReadListener listener, ByteArrayOutputStream baos) load(URL f, ReadListener listener) readObject(int id) protected StringreadString(int length, int offset) protected StringreadString(InputStream f, int length) voidsetAssetManager(AssetManager manager) 
- 
Field Details- 
debugpublic static boolean debug
 
- 
- 
Constructor Details- 
BinaryImporterpublic BinaryImporter()
 
- 
- 
Method Details- 
getFormatVersionpublic int getFormatVersion()Description copied from interface:JmeImporterReturns the version number written in the header of the J3O/XML file.- Specified by:
- getFormatVersionin interface- JmeImporter
- Returns:
- Global version number for the file
 
- 
canUseFastBufferspublic static boolean canUseFastBuffers()
- 
getInstance
- 
setAssetManager
- 
getAssetManager- Specified by:
- getAssetManagerin interface- JmeImporter
 
- 
loadDescription copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
- loadin interface- AssetLoader
- Parameters:
- info- the located asset
- Returns:
- An object representing the resource.
 
- 
load- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
loadpublic Savable load(InputStream is, ReadListener listener, ByteArrayOutputStream baos) throws IOException - Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
getCapsule- Specified by:
- getCapsulein interface- JmeImporter
 
- 
readString- Throws:
- IOException
 
- 
readString- Throws:
- IOException
 
- 
readObject
 
-