Package com.ardor3d.util.export.binary
Class BinaryInputCapsule
java.lang.Object
com.ardor3d.util.export.binary.BinaryInputCapsule
- All Implemented Interfaces:
InputCapsule
-
Field Summary
Modifier and TypeFieldDescriptionprotected BinaryClassObject
protected BinaryImporter
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]
inflateFrom
(byte[] contents, int index) protected BitSet
readBitSet
(byte[] content) readBitSet
(String name, BitSet defVal) protected boolean
readBoolean
(byte[] content) boolean
readBoolean
(String name, boolean defVal) protected boolean[]
readBooleanArray
(byte[] content) boolean[]
readBooleanArray
(String name, boolean[] defVal) protected boolean[][]
readBooleanArray2D
(byte[] content) boolean[][]
readBooleanArray2D
(String name, boolean[][] defVal) protected byte
readByte
(byte[] content) byte
protected byte[]
readByteArray
(byte[] content) byte[]
readByteArray
(String name, byte[] defVal) protected byte[][]
readByteArray2D
(byte[] content) byte[][]
readByteArray2D
(String name, byte[][] defVal) protected ByteBuffer
readByteBuffer
(byte[] content) readByteBuffer
(String name, ByteBuffer defVal) protected List
<ByteBuffer> readByteBufferArrayList
(byte[] content) readByteBufferList
(String name, List<ByteBuffer> defVal) protected double
readDouble
(byte[] content) double
readDouble
(String name, double defVal) protected double[]
readDoubleArray
(byte[] content) double[]
readDoubleArray
(String name, double[] defVal) protected double[][]
readDoubleArray2D
(byte[] content) double[][]
readDoubleArray2D
(String name, double[][] defVal) <T extends Enum<T>>
T<T extends Enum<T>>
T[]readEnumArray
(String name, Class<T> enumType, T[] defVal) protected float
readFloat
(byte[] content) float
protected float[]
readFloatArray
(byte[] content) float[]
readFloatArray
(String name, float[] defVal) protected float[][]
readFloatArray2D
(byte[] content) float[][]
readFloatArray2D
(String name, float[][] defVal) protected FloatBuffer
readFloatBuffer
(byte[] content) readFloatBuffer
(String name, FloatBuffer defVal) protected List
<FloatBuffer> readFloatBufferArrayList
(byte[] content) readFloatBufferList
(String name, List<FloatBuffer> defVal) protected int
readInt
(byte[] content) int
protected int[]
readIntArray
(byte[] content) int[]
readIntArray
(String name, int[] defVal) protected int[][]
readIntArray2D
(byte[] content) int[][]
readIntArray2D
(String name, int[][] defVal) protected IntBuffer
readIntBuffer
(byte[] content) readIntBuffer
(String name, IntBuffer defVal) protected long
readLong
(byte[] content) long
protected long[]
readLongArray
(byte[] content) long[]
readLongArray
(String name, long[] defVal) protected long[][]
readLongArray2D
(byte[] content) long[][]
readLongArray2D
(String name, long[][] defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID
readSavable
(byte[] content) readSavable
(String name, Savable defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[]
readSavableArray
(byte[] content) Savable[]
readSavableArray
(String name, Savable[] defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][]
readSavableArray2D
(byte[] content) Savable[][]
readSavableArray2D
(String name, Savable[][] defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][][]
readSavableArray3D
(byte[] content) Savable[][][]
readSavableArray3D
(String name, Savable[][][] defVal) readSavableList
(String name, List<E> defVal) readSavableListArray
(String name, List<E>[] defVal) readSavableListArray2D
(String name, List<E>[][] defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][]
readSavableMap
(byte[] content) readSavableMap
(String name, Map<K, V> defVal) protected short
readShort
(byte[] content) short
protected short[]
readShortArray
(byte[] content) short[]
readShortArray
(String name, short[] defVal) protected short[][]
readShortArray2D
(byte[] content) short[][]
readShortArray2D
(String name, short[][] defVal) protected ShortBuffer
readShortBuffer
(byte[] content) readShortBuffer
(String name, ShortBuffer defVal) protected String
readString
(byte[] content) readString
(String name, String defVal) protected String[]
readStringArray
(byte[] content) String[]
readStringArray
(String name, String[] defVal) protected String[][]
readStringArray2D
(byte[] content) String[][]
readStringArray2D
(String name, String[][] defVal) protected com.ardor3d.util.export.binary.BinaryInputCapsule.StringIDMap
readStringSavableMap
(byte[] content) readStringSavableMap
(String name, Map<String, V> defVal) void
setContent
(byte[] content, int start, int limit)
-
Field Details
-
_importer
-
_cObj
-
_fieldData
-
_index
protected int _index
-
-
Constructor Details
-
BinaryInputCapsule
-
-
Method Details
-
setContent
public void setContent(byte[] content, int start, int limit) -
readBitSet
- Specified by:
readBitSet
in interfaceInputCapsule
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceInputCapsule
- Throws:
IOException
-
readBooleanArray
- Specified by:
readBooleanArray
in interfaceInputCapsule
- Throws:
IOException
-
readBooleanArray2D
- Specified by:
readBooleanArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceInputCapsule
- Throws:
IOException
-
readByteArray
- Specified by:
readByteArray
in interfaceInputCapsule
- Throws:
IOException
-
readByteArray2D
- Specified by:
readByteArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readByteBuffer
- Specified by:
readByteBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readByteBufferList
- Specified by:
readByteBufferList
in interfaceInputCapsule
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceInputCapsule
- Throws:
IOException
-
readDoubleArray
- Specified by:
readDoubleArray
in interfaceInputCapsule
- Throws:
IOException
-
readDoubleArray2D
- Specified by:
readDoubleArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceInputCapsule
- Throws:
IOException
-
readFloatArray
- Specified by:
readFloatArray
in interfaceInputCapsule
- Throws:
IOException
-
readFloatArray2D
- Specified by:
readFloatArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readFloatBuffer
- Specified by:
readFloatBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readFloatBufferList
public List<FloatBuffer> readFloatBufferList(String name, List<FloatBuffer> defVal) throws IOException - Specified by:
readFloatBufferList
in interfaceInputCapsule
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceInputCapsule
- Throws:
IOException
-
readIntArray
- Specified by:
readIntArray
in interfaceInputCapsule
- Throws:
IOException
-
readIntArray2D
- Specified by:
readIntArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readIntBuffer
- Specified by:
readIntBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceInputCapsule
- Throws:
IOException
-
readLongArray
- Specified by:
readLongArray
in interfaceInputCapsule
- Throws:
IOException
-
readLongArray2D
- Specified by:
readLongArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readSavable
- Specified by:
readSavable
in interfaceInputCapsule
- Throws:
IOException
-
readSavableArray
- Specified by:
readSavableArray
in interfaceInputCapsule
- Throws:
IOException
-
readSavableArray2D
- Specified by:
readSavableArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readSavableArray3D
- Throws:
IOException
-
readSavableList
- Specified by:
readSavableList
in interfaceInputCapsule
- Throws:
IOException
-
readSavableListArray
public <E extends Savable> List<E>[] readSavableListArray(String name, List<E>[] defVal) throws IOException - Specified by:
readSavableListArray
in interfaceInputCapsule
- Throws:
IOException
-
readSavableListArray2D
public <E extends Savable> List<E>[][] readSavableListArray2D(String name, List<E>[][] defVal) throws IOException - Specified by:
readSavableListArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readSavableMap
public <K extends Savable,V extends Savable> Map<K,V> readSavableMap(String name, Map<K, V> defVal) throws IOException- Specified by:
readSavableMap
in interfaceInputCapsule
- Throws:
IOException
-
readStringSavableMap
public <V extends Savable> Map<String,V> readStringSavableMap(String name, Map<String, V> defVal) throws IOException- Specified by:
readStringSavableMap
in interfaceInputCapsule
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceInputCapsule
- Throws:
IOException
-
readShortArray
- Specified by:
readShortArray
in interfaceInputCapsule
- Throws:
IOException
-
readShortArray2D
- Specified by:
readShortArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readShortBuffer
- Specified by:
readShortBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readString
- Specified by:
readString
in interfaceInputCapsule
- Throws:
IOException
-
readStringArray
- Specified by:
readStringArray
in interfaceInputCapsule
- Throws:
IOException
-
readStringArray2D
- Specified by:
readStringArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readByteArray
- Throws:
IOException
-
readByteArray2D
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readIntArray
- Throws:
IOException
-
readIntArray2D
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readFloatArray
- Throws:
IOException
-
readFloatArray2D
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readDoubleArray
- Throws:
IOException
-
readDoubleArray2D
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readLongArray
- Throws:
IOException
-
readLongArray2D
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readShortArray
- Throws:
IOException
-
readShortArray2D
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readBooleanArray
- Throws:
IOException
-
readBooleanArray2D
- Throws:
IOException
-
readString
- Throws:
IOException
-
readStringArray
- Throws:
IOException
-
readStringArray2D
- Throws:
IOException
-
readBitSet
- Throws:
IOException
-
inflateFrom
protected static byte[] inflateFrom(byte[] contents, int index) -
readSavable
protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID readSavable(byte[] content) throws IOException - Throws:
IOException
-
readSavableArray
protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[] readSavableArray(byte[] content) throws IOException - Throws:
IOException
-
readSavableArray2D
protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][] readSavableArray2D(byte[] content) throws IOException - Throws:
IOException
-
readSavableArray3D
protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][][] readSavableArray3D(byte[] content) throws IOException - Throws:
IOException
-
readSavableMap
protected com.ardor3d.util.export.binary.BinaryInputCapsule.ID[][] readSavableMap(byte[] content) throws IOException - Throws:
IOException
-
readStringSavableMap
protected com.ardor3d.util.export.binary.BinaryInputCapsule.StringIDMap readStringSavableMap(byte[] content) throws IOException - Throws:
IOException
-
readFloatBufferArrayList
- Throws:
IOException
-
readByteBufferArrayList
- Throws:
IOException
-
readFloatBuffer
- Throws:
IOException
-
readIntBuffer
- Throws:
IOException
-
readShortBuffer
- Throws:
IOException
-
readByteBuffer
- Throws:
IOException
-
readEnum
- Specified by:
readEnum
in interfaceInputCapsule
- Throws:
IOException
-
readEnumArray
public <T extends Enum<T>> T[] readEnumArray(String name, Class<T> enumType, T[] defVal) throws IOException - Specified by:
readEnumArray
in interfaceInputCapsule
- Throws:
IOException
-