Package com.jme3.export.xml
Class DOMInputCapsule
java.lang.Object
com.jme3.export.xml.DOMInputCapsule
- All Implemented Interfaces:
InputCapsule
Part of the jME XML IO system as introduced in the Google Code jmexml project.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getSavableVersion
(Class<? extends Savable> desiredClass) protected String[]
parseTokens
(String inString) readBitSet
(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) readByteBufferArrayList
(String name, ArrayList<ByteBuffer> defVal) double
readDouble
(String name, double defVal) double[]
readDoubleArray
(String name, double[] defVal) double[][]
readDoubleArray2D
(String name, double[][] defVal) <T extends Enum<T>>
Tfloat
float[]
readFloatArray
(String name, float[] defVal) float[][]
readFloatArray2D
(String name, float[][] defVal) readFloatBuffer
(String name, FloatBuffer defVal) reads from currentElem if name is nullreadFloatBufferArrayList
(String name, ArrayList<FloatBuffer> defVal) int
int[]
readIntArray
(String name, int[] defVal) int[][]
readIntArray2D
(String name, int[][] defVal) readIntBuffer
(String name, IntBuffer defVal) readIntSavableMap
(String name, IntMap<? extends Savable> 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) readSavableArrayList
(String name, ArrayList defVal) readSavableArrayListArray
(String name, ArrayList[] defVal) readSavableArrayListArray2D
(String name, ArrayList[][] defVal) readSavableMap
(String name, Map<? extends Savable, ? extends Savable> 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, ? extends Savable> defVal)
-
Constructor Details
-
DOMInputCapsule
-
-
Method Details
-
getSavableVersion
- Specified by:
getSavableVersion
in interfaceInputCapsule
-
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
-
readSavableArrayList
- Specified by:
readSavableArrayList
in interfaceInputCapsule
- Throws:
IOException
-
readSavableArrayListArray
public ArrayList<Savable>[] readSavableArrayListArray(String name, ArrayList[] defVal) throws IOException - Specified by:
readSavableArrayListArray
in interfaceInputCapsule
- Throws:
IOException
-
readSavableArrayListArray2D
public ArrayList<Savable>[][] readSavableArrayListArray2D(String name, ArrayList[][] defVal) throws IOException - Specified by:
readSavableArrayListArray2D
in interfaceInputCapsule
- Throws:
IOException
-
readFloatBufferArrayList
public ArrayList<FloatBuffer> readFloatBufferArrayList(String name, ArrayList<FloatBuffer> defVal) throws IOException - Specified by:
readFloatBufferArrayList
in interfaceInputCapsule
- Throws:
IOException
-
readSavableMap
public Map<? extends Savable,? extends Savable> readSavableMap(String name, Map<? extends Savable, ? extends Savable> defVal) throws IOException- Specified by:
readSavableMap
in interfaceInputCapsule
- Throws:
IOException
-
readStringSavableMap
public Map<String,? extends Savable> readStringSavableMap(String name, Map<String, ? extends Savable> defVal) throws IOException- Specified by:
readStringSavableMap
in interfaceInputCapsule
- Throws:
IOException
-
readIntSavableMap
public IntMap<? extends Savable> readIntSavableMap(String name, IntMap<? extends Savable> defVal) throws IOException - Specified by:
readIntSavableMap
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
-
readByteBufferArrayList
public ArrayList<ByteBuffer> readByteBufferArrayList(String name, ArrayList<ByteBuffer> defVal) throws IOException - Specified by:
readByteBufferArrayList
in interfaceInputCapsule
- Throws:
IOException
-
readEnum
- Specified by:
readEnum
in interfaceInputCapsule
- Throws:
IOException
-
parseTokens
-