Package com.ardor3d.util.export.xml
Class DOMInputCapsule
java.lang.Object
com.ardor3d.util.export.xml.DOMInputCapsule
- All Implemented Interfaces:
InputCapsule
Part of the ardor3d XML IO system
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadBitSet
(String name, BitSet defVal) boolean
readBoolean
(String name, boolean defVal) boolean[]
readBooleanArray
(String name, boolean[] defVal) boolean[][]
readBooleanArray2D
(String name, boolean[][] defVal) byte
byte[]
readByteArray
(String name, byte[] defVal) byte[][]
readByteArray2D
(String name, byte[][] defVal) readByteBuffer
(String name, ByteBuffer defVal) readByteBufferList
(String name, List<ByteBuffer> defVal) double
readDouble
(String name, double defVal) double[]
readDoubleArray
(String name, double[] defVal) double[][]
readDoubleArray2D
(String name, double[][] defVal) <T extends Enum<T>>
T<T extends Enum<T>>
T[]readEnumArray
(String name, Class<T> enumType, T[] defVal) float
float[]
readFloatArray
(String name, float[] defVal) float[][]
readFloatArray2D
(String name, float[][] defVal) readFloatBuffer
(String name, FloatBuffer defVal) reads from currentElem if name is nullreadFloatBufferList
(String name, List<FloatBuffer> defVal) int
int[]
readIntArray
(String name, int[] defVal) int[][]
readIntArray2D
(String name, int[][] defVal) readIntBuffer
(String name, IntBuffer defVal) long
long[]
readLongArray
(String name, long[] defVal) long[][]
readLongArray2D
(String name, long[][] defVal) readSavable
(String name, Savable defVal) Savable[]
readSavableArray
(String name, Savable[] defVal) Savable[][]
readSavableArray2D
(String name, Savable[][] defVal) readSavableList
(String name, List<E> defVal) readSavableListArray
(String name, List<E>[] defVal) readSavableListArray2D
(String name, List<E>[][] defVal) readSavableMap
(String name, Map<K, V> defVal) short
short[]
readShortArray
(String name, short[] defVal) short[][]
readShortArray2D
(String name, short[][] defVal) readShortBuffer
(String name, ShortBuffer defVal) readString
(String name, String defVal) String[]
readStringArray
(String name, String[] defVal) String[][]
readStringArray2D
(String name, String[][] defVal) readStringSavableMap
(String name, Map<String, V> defVal)
-
Constructor Details
-
DOMInputCapsule
-
-
Method Details
-
readByte
- Specified by:
readByte
in interfaceInputCapsule
- Throws:
IOException
-
readByteArray
- Specified by:
readByteArray
in interfaceInputCapsule
- Throws:
IOException
-
readByteArray2D
- Specified by:
readByteArray2D
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
-
readFloat
- Specified by:
readFloat
in interfaceInputCapsule
- Throws:
IOException
-
readFloatArray
- Specified by:
readFloatArray
in interfaceInputCapsule
- Throws:
IOException
-
readFloatArray2D
- Specified by:
readFloatArray2D
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
-
readLong
- Specified by:
readLong
in interfaceInputCapsule
- Throws:
IOException
-
readLongArray
- Specified by:
readLongArray
in interfaceInputCapsule
- Throws:
IOException
-
readLongArray2D
- Specified by:
readLongArray2D
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
-
readBoolean
- Specified by:
readBoolean
in interfaceInputCapsule
- Throws:
IOException
-
readBooleanArray
- Specified by:
readBooleanArray
in interfaceInputCapsule
- Throws:
IOException
-
readBooleanArray2D
- Specified by:
readBooleanArray2D
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
-
readBitSet
- Specified by:
readBitSet
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
-
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
-
readFloatBufferList
public List<FloatBuffer> readFloatBufferList(String name, List<FloatBuffer> defVal) throws IOException - Specified by:
readFloatBufferList
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
-
readFloatBuffer
reads from currentElem if name is null- Specified by:
readFloatBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readIntBuffer
- Specified by:
readIntBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readByteBuffer
- Specified by:
readByteBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readShortBuffer
- Specified by:
readShortBuffer
in interfaceInputCapsule
- Throws:
IOException
-
readByteBufferList
- Specified by:
readByteBufferList
in interfaceInputCapsule
- 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
-