Package com.jme3.export.binary
Class BinaryImporter
java.lang.Object
com.jme3.export.binary.BinaryImporter
- All Implemented Interfaces:
AssetLoader,JmeImporter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
debug
public static boolean debug
-
-
Constructor Details
-
BinaryImporter
public BinaryImporter()
-
-
Method Details
-
getFormatVersion
public int getFormatVersion()Description copied from interface:JmeImporterReturns the version number written in the header of the J3O/XML file.- Specified by:
getFormatVersionin interfaceJmeImporter- Returns:
- Global version number for the file
-
canUseFastBuffers
public static boolean canUseFastBuffers() -
getInstance
-
setAssetManager
-
getAssetManager
- Specified by:
getAssetManagerin interfaceJmeImporter
-
load
Description copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
loadin interfaceAssetLoader- Parameters:
info- the located asset- Returns:
- An object representing the resource.
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
load
public 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 interfaceJmeImporter
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
readObject
-