Package com.jme3.export.binary
Class BinaryImporter
java.lang.Object
com.jme3.export.binary.BinaryImporter
- All Implemented Interfaces:
AssetLoader
,JmeImporter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getCapsule
(Savable id) int
Returns the version number written in the header of the J3O/XML file.static BinaryImporter
load
(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 String
readString
(int length, int offset) protected String
readString
(InputStream f, int length) void
setAssetManager
(AssetManager manager)
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
BinaryImporter
public BinaryImporter()
-
-
Method Details
-
getFormatVersion
public int getFormatVersion()Description copied from interface:JmeImporter
Returns the version number written in the header of the J3O/XML file.- Specified by:
getFormatVersion
in interfaceJmeImporter
- Returns:
- Global version number for the file
-
canUseFastBuffers
public static boolean canUseFastBuffers() -
getInstance
-
setAssetManager
-
getAssetManager
- Specified by:
getAssetManager
in interfaceJmeImporter
-
load
Description copied from interface:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in 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:
getCapsule
in interfaceJmeImporter
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
readObject
-