public final class BinaryImporter extends java.lang.Object implements JmeImporter
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
BinaryImporter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canUseFastBuffers() |
AssetManager |
getAssetManager() |
InputCapsule |
getCapsule(Savable id) |
int |
getFormatVersion()
Returns the version number written in the header of the J3O/XML
file.
|
static BinaryImporter |
getInstance() |
java.lang.Object |
load(AssetInfo info)
Loads asset from the given input stream, parsing it into
an application-usable object.
|
Savable |
load(byte[] data) |
Savable |
load(java.io.File f) |
Savable |
load(java.io.File f,
ReadListener listener) |
Savable |
load(java.io.InputStream is) |
Savable |
load(java.io.InputStream is,
ReadListener listener) |
Savable |
load(java.io.InputStream is,
ReadListener listener,
java.io.ByteArrayOutputStream baos) |
Savable |
load(java.net.URL f) |
Savable |
load(java.net.URL f,
ReadListener listener) |
Savable |
readObject(int id) |
protected java.lang.String |
readString(java.io.InputStream f,
int length) |
protected java.lang.String |
readString(int length,
int offset) |
void |
setAssetManager(AssetManager manager) |
public int getFormatVersion()
JmeImporter
getFormatVersion
in interface JmeImporter
public static boolean canUseFastBuffers()
public static BinaryImporter getInstance()
public void setAssetManager(AssetManager manager)
public AssetManager getAssetManager()
getAssetManager
in interface JmeImporter
public java.lang.Object load(AssetInfo info)
AssetLoader
load
in interface AssetLoader
public Savable load(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public Savable load(java.io.InputStream is, ReadListener listener) throws java.io.IOException
java.io.IOException
public Savable load(java.io.InputStream is, ReadListener listener, java.io.ByteArrayOutputStream baos) throws java.io.IOException
java.io.IOException
public Savable load(java.net.URL f) throws java.io.IOException
java.io.IOException
public Savable load(java.net.URL f, ReadListener listener) throws java.io.IOException
java.io.IOException
public Savable load(java.io.File f) throws java.io.IOException
java.io.IOException
public Savable load(java.io.File f, ReadListener listener) throws java.io.IOException
java.io.IOException
public Savable load(byte[] data) throws java.io.IOException
java.io.IOException
public InputCapsule getCapsule(Savable id)
getCapsule
in interface JmeImporter
protected java.lang.String readString(java.io.InputStream f, int length) throws java.io.IOException
java.io.IOException
protected java.lang.String readString(int length, int offset) throws java.io.IOException
java.io.IOException
public Savable readObject(int id)