public class DOMInputCapsule extends java.lang.Object implements InputCapsule
Constructor and Description |
---|
DOMInputCapsule(org.w3c.dom.Document doc,
XMLImporter importer) |
Modifier and Type | Method and Description |
---|---|
int |
getSavableVersion(java.lang.Class<? extends Savable> desiredClass) |
protected java.lang.String[] |
parseTokens(java.lang.String inString) |
java.util.BitSet |
readBitSet(java.lang.String name,
java.util.BitSet defVal) |
boolean |
readBoolean(java.lang.String name,
boolean defVal) |
boolean[] |
readBooleanArray(java.lang.String name,
boolean[] defVal) |
boolean[][] |
readBooleanArray2D(java.lang.String name,
boolean[][] defVal) |
byte |
readByte(java.lang.String name,
byte defVal) |
byte[] |
readByteArray(java.lang.String name,
byte[] defVal) |
byte[][] |
readByteArray2D(java.lang.String name,
byte[][] defVal) |
java.nio.ByteBuffer |
readByteBuffer(java.lang.String name,
java.nio.ByteBuffer defVal) |
java.util.ArrayList<java.nio.ByteBuffer> |
readByteBufferArrayList(java.lang.String name,
java.util.ArrayList<java.nio.ByteBuffer> defVal) |
double |
readDouble(java.lang.String name,
double defVal) |
double[] |
readDoubleArray(java.lang.String name,
double[] defVal) |
double[][] |
readDoubleArray2D(java.lang.String name,
double[][] defVal) |
<T extends java.lang.Enum<T>> |
readEnum(java.lang.String name,
java.lang.Class<T> enumType,
T defVal) |
float |
readFloat(java.lang.String name,
float defVal) |
float[] |
readFloatArray(java.lang.String name,
float[] defVal) |
float[][] |
readFloatArray2D(java.lang.String name,
float[][] defVal) |
java.nio.FloatBuffer |
readFloatBuffer(java.lang.String name,
java.nio.FloatBuffer defVal)
reads from currentElem if name is null
|
java.util.ArrayList<java.nio.FloatBuffer> |
readFloatBufferArrayList(java.lang.String name,
java.util.ArrayList<java.nio.FloatBuffer> defVal) |
int |
readInt(java.lang.String name,
int defVal) |
int[] |
readIntArray(java.lang.String name,
int[] defVal) |
int[][] |
readIntArray2D(java.lang.String name,
int[][] defVal) |
java.nio.IntBuffer |
readIntBuffer(java.lang.String name,
java.nio.IntBuffer defVal) |
IntMap<? extends Savable> |
readIntSavableMap(java.lang.String name,
IntMap<? extends Savable> defVal) |
long |
readLong(java.lang.String name,
long defVal) |
long[] |
readLongArray(java.lang.String name,
long[] defVal) |
long[][] |
readLongArray2D(java.lang.String name,
long[][] defVal) |
Savable |
readSavable(java.lang.String name,
Savable defVal) |
Savable[] |
readSavableArray(java.lang.String name,
Savable[] defVal) |
Savable[][] |
readSavableArray2D(java.lang.String name,
Savable[][] defVal) |
java.util.ArrayList<Savable> |
readSavableArrayList(java.lang.String name,
java.util.ArrayList defVal) |
java.util.ArrayList<Savable>[] |
readSavableArrayListArray(java.lang.String name,
java.util.ArrayList[] defVal) |
java.util.ArrayList<Savable>[][] |
readSavableArrayListArray2D(java.lang.String name,
java.util.ArrayList[][] defVal) |
java.util.Map<? extends Savable,? extends Savable> |
readSavableMap(java.lang.String name,
java.util.Map<? extends Savable,? extends Savable> defVal) |
short |
readShort(java.lang.String name,
short defVal) |
short[] |
readShortArray(java.lang.String name,
short[] defVal) |
short[][] |
readShortArray2D(java.lang.String name,
short[][] defVal) |
java.nio.ShortBuffer |
readShortBuffer(java.lang.String name,
java.nio.ShortBuffer defVal) |
java.lang.String |
readString(java.lang.String name,
java.lang.String defVal) |
java.lang.String[] |
readStringArray(java.lang.String name,
java.lang.String[] defVal) |
java.lang.String[][] |
readStringArray2D(java.lang.String name,
java.lang.String[][] defVal) |
java.util.Map<java.lang.String,? extends Savable> |
readStringSavableMap(java.lang.String name,
java.util.Map<java.lang.String,? extends Savable> defVal) |
public DOMInputCapsule(org.w3c.dom.Document doc, XMLImporter importer)
public int getSavableVersion(java.lang.Class<? extends Savable> desiredClass)
getSavableVersion
in interface InputCapsule
public byte readByte(java.lang.String name, byte defVal) throws java.io.IOException
readByte
in interface InputCapsule
java.io.IOException
public byte[] readByteArray(java.lang.String name, byte[] defVal) throws java.io.IOException
readByteArray
in interface InputCapsule
java.io.IOException
public byte[][] readByteArray2D(java.lang.String name, byte[][] defVal) throws java.io.IOException
readByteArray2D
in interface InputCapsule
java.io.IOException
public int readInt(java.lang.String name, int defVal) throws java.io.IOException
readInt
in interface InputCapsule
java.io.IOException
public int[] readIntArray(java.lang.String name, int[] defVal) throws java.io.IOException
readIntArray
in interface InputCapsule
java.io.IOException
public int[][] readIntArray2D(java.lang.String name, int[][] defVal) throws java.io.IOException
readIntArray2D
in interface InputCapsule
java.io.IOException
public float readFloat(java.lang.String name, float defVal) throws java.io.IOException
readFloat
in interface InputCapsule
java.io.IOException
public float[] readFloatArray(java.lang.String name, float[] defVal) throws java.io.IOException
readFloatArray
in interface InputCapsule
java.io.IOException
public float[][] readFloatArray2D(java.lang.String name, float[][] defVal) throws java.io.IOException
readFloatArray2D
in interface InputCapsule
java.io.IOException
public double readDouble(java.lang.String name, double defVal) throws java.io.IOException
readDouble
in interface InputCapsule
java.io.IOException
public double[] readDoubleArray(java.lang.String name, double[] defVal) throws java.io.IOException
readDoubleArray
in interface InputCapsule
java.io.IOException
public double[][] readDoubleArray2D(java.lang.String name, double[][] defVal) throws java.io.IOException
readDoubleArray2D
in interface InputCapsule
java.io.IOException
public long readLong(java.lang.String name, long defVal) throws java.io.IOException
readLong
in interface InputCapsule
java.io.IOException
public long[] readLongArray(java.lang.String name, long[] defVal) throws java.io.IOException
readLongArray
in interface InputCapsule
java.io.IOException
public long[][] readLongArray2D(java.lang.String name, long[][] defVal) throws java.io.IOException
readLongArray2D
in interface InputCapsule
java.io.IOException
public short readShort(java.lang.String name, short defVal) throws java.io.IOException
readShort
in interface InputCapsule
java.io.IOException
public short[] readShortArray(java.lang.String name, short[] defVal) throws java.io.IOException
readShortArray
in interface InputCapsule
java.io.IOException
public short[][] readShortArray2D(java.lang.String name, short[][] defVal) throws java.io.IOException
readShortArray2D
in interface InputCapsule
java.io.IOException
public boolean readBoolean(java.lang.String name, boolean defVal) throws java.io.IOException
readBoolean
in interface InputCapsule
java.io.IOException
public boolean[] readBooleanArray(java.lang.String name, boolean[] defVal) throws java.io.IOException
readBooleanArray
in interface InputCapsule
java.io.IOException
public boolean[][] readBooleanArray2D(java.lang.String name, boolean[][] defVal) throws java.io.IOException
readBooleanArray2D
in interface InputCapsule
java.io.IOException
public java.lang.String readString(java.lang.String name, java.lang.String defVal) throws java.io.IOException
readString
in interface InputCapsule
java.io.IOException
public java.lang.String[] readStringArray(java.lang.String name, java.lang.String[] defVal) throws java.io.IOException
readStringArray
in interface InputCapsule
java.io.IOException
public java.lang.String[][] readStringArray2D(java.lang.String name, java.lang.String[][] defVal) throws java.io.IOException
readStringArray2D
in interface InputCapsule
java.io.IOException
public java.util.BitSet readBitSet(java.lang.String name, java.util.BitSet defVal) throws java.io.IOException
readBitSet
in interface InputCapsule
java.io.IOException
public Savable readSavable(java.lang.String name, Savable defVal) throws java.io.IOException
readSavable
in interface InputCapsule
java.io.IOException
public Savable[] readSavableArray(java.lang.String name, Savable[] defVal) throws java.io.IOException
readSavableArray
in interface InputCapsule
java.io.IOException
public Savable[][] readSavableArray2D(java.lang.String name, Savable[][] defVal) throws java.io.IOException
readSavableArray2D
in interface InputCapsule
java.io.IOException
public java.util.ArrayList<Savable> readSavableArrayList(java.lang.String name, java.util.ArrayList defVal) throws java.io.IOException
readSavableArrayList
in interface InputCapsule
java.io.IOException
public java.util.ArrayList<Savable>[] readSavableArrayListArray(java.lang.String name, java.util.ArrayList[] defVal) throws java.io.IOException
readSavableArrayListArray
in interface InputCapsule
java.io.IOException
public java.util.ArrayList<Savable>[][] readSavableArrayListArray2D(java.lang.String name, java.util.ArrayList[][] defVal) throws java.io.IOException
readSavableArrayListArray2D
in interface InputCapsule
java.io.IOException
public java.util.ArrayList<java.nio.FloatBuffer> readFloatBufferArrayList(java.lang.String name, java.util.ArrayList<java.nio.FloatBuffer> defVal) throws java.io.IOException
readFloatBufferArrayList
in interface InputCapsule
java.io.IOException
public java.util.Map<? extends Savable,? extends Savable> readSavableMap(java.lang.String name, java.util.Map<? extends Savable,? extends Savable> defVal) throws java.io.IOException
readSavableMap
in interface InputCapsule
java.io.IOException
public java.util.Map<java.lang.String,? extends Savable> readStringSavableMap(java.lang.String name, java.util.Map<java.lang.String,? extends Savable> defVal) throws java.io.IOException
readStringSavableMap
in interface InputCapsule
java.io.IOException
public IntMap<? extends Savable> readIntSavableMap(java.lang.String name, IntMap<? extends Savable> defVal) throws java.io.IOException
readIntSavableMap
in interface InputCapsule
java.io.IOException
public java.nio.FloatBuffer readFloatBuffer(java.lang.String name, java.nio.FloatBuffer defVal) throws java.io.IOException
readFloatBuffer
in interface InputCapsule
java.io.IOException
public java.nio.IntBuffer readIntBuffer(java.lang.String name, java.nio.IntBuffer defVal) throws java.io.IOException
readIntBuffer
in interface InputCapsule
java.io.IOException
public java.nio.ByteBuffer readByteBuffer(java.lang.String name, java.nio.ByteBuffer defVal) throws java.io.IOException
readByteBuffer
in interface InputCapsule
java.io.IOException
public java.nio.ShortBuffer readShortBuffer(java.lang.String name, java.nio.ShortBuffer defVal) throws java.io.IOException
readShortBuffer
in interface InputCapsule
java.io.IOException
public java.util.ArrayList<java.nio.ByteBuffer> readByteBufferArrayList(java.lang.String name, java.util.ArrayList<java.nio.ByteBuffer> defVal) throws java.io.IOException
readByteBufferArrayList
in interface InputCapsule
java.io.IOException
public <T extends java.lang.Enum<T>> T readEnum(java.lang.String name, java.lang.Class<T> enumType, T defVal) throws java.io.IOException
readEnum
in interface InputCapsule
java.io.IOException
protected java.lang.String[] parseTokens(java.lang.String inString)