Package com.ardor3d.util.export.binary
Class BinaryImporter
java.lang.Object
com.ardor3d.util.export.binary.BinaryImporter
- All Implemented Interfaces:
Ardor3dImporter
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected final Map
<Savable, BinaryInputCapsule> protected final Map
<String, BinaryClassObject> protected byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(byte[] data) Load a Savable object from the given byte array, starting at the first index.Load a Savable object from the given file.load
(File file, ReadListener listener) load
(InputStream is) Load a Savable object from the given stream.load
(InputStream is, ReadListener listener) load
(InputStream is, ReadListener listener, ByteArrayOutputStream reuseableStream) Load a Savable object from the given URL.load
(URL url, ReadListener listener) readObject
(int id) protected String
readString
(int length, int offset) protected String
readString
(InputStream is, int length)
-
Field Details
-
_classes
-
_contentTable
-
_capsuleTable
-
_locationTable
-
_dataArray
protected byte[] _dataArray -
_aliasWidth
protected int _aliasWidth
-
-
Constructor Details
-
BinaryImporter
public BinaryImporter()
-
-
Method Details
-
load
Description copied from interface:Ardor3dImporter
Load a Savable object from the given stream.- Specified by:
load
in interfaceArdor3dImporter
- Parameters:
is
- the input stream- Returns:
- the savable object.
- Throws:
IOException
- exception
-
load
- Throws:
IOException
-
load
public Savable load(InputStream is, ReadListener listener, ByteArrayOutputStream reuseableStream) throws IOException - Throws:
IOException
-
load
Description copied from interface:Ardor3dImporter
Load a Savable object from the given URL.- Specified by:
load
in interfaceArdor3dImporter
- Parameters:
url
- the URL- Returns:
- the savable object.
- Throws:
IOException
- exception
-
load
- Throws:
IOException
-
load
Description copied from interface:Ardor3dImporter
Load a Savable object from the given file.- Specified by:
load
in interfaceArdor3dImporter
- Parameters:
file
- the file- Returns:
- the savable object.
- Throws:
IOException
- exception
-
load
- Throws:
IOException
-
load
Description copied from interface:Ardor3dImporter
Load a Savable object from the given byte array, starting at the first index.- Specified by:
load
in interfaceArdor3dImporter
- Parameters:
data
- the data- Returns:
- the savable object.
- Throws:
IOException
- exception
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
readObject
-