Class DOMInputCapsule

java.lang.Object
com.jme3.export.xml.DOMInputCapsule
All Implemented Interfaces:
com.jme3.export.InputCapsule

public class DOMInputCapsule extends Object implements com.jme3.export.InputCapsule
Part of the jME XML IO system as introduced in the Google Code jmexml project.
Author:
Kai Rabien (hevee) - original author of the code.google.com jmexml project, Doug Daniels (dougnukem) - adjustments for jME 2.0 and Java 1.5, blaine
  • Constructor Details

  • Method Details

    • getSavableVersion

      public int getSavableVersion(Class<? extends com.jme3.export.Savable> desiredClass)
      Specified by:
      getSavableVersion in interface com.jme3.export.InputCapsule
    • readByte

      public byte readByte(String name, byte defVal) throws IOException
      Specified by:
      readByte in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readByteArray

      public byte[] readByteArray(String name, byte[] defVal) throws IOException
      Specified by:
      readByteArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readByteArray2D

      public byte[][] readByteArray2D(String name, byte[][] defVal) throws IOException
      Specified by:
      readByteArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readInt

      public int readInt(String name, int defVal) throws IOException
      Specified by:
      readInt in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readIntArray

      public int[] readIntArray(String name, int[] defVal) throws IOException
      Specified by:
      readIntArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readIntArray2D

      public int[][] readIntArray2D(String name, int[][] defVal) throws IOException
      Specified by:
      readIntArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readFloat

      public float readFloat(String name, float defVal) throws IOException
      Specified by:
      readFloat in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readFloatArray

      public float[] readFloatArray(String name, float[] defVal) throws IOException
      Specified by:
      readFloatArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readFloatArray2D

      public float[][] readFloatArray2D(String name, float[][] defVal) throws IOException
      Specified by:
      readFloatArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readDouble

      public double readDouble(String name, double defVal) throws IOException
      Specified by:
      readDouble in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readDoubleArray

      public double[] readDoubleArray(String name, double[] defVal) throws IOException
      Specified by:
      readDoubleArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readDoubleArray2D

      public double[][] readDoubleArray2D(String name, double[][] defVal) throws IOException
      Specified by:
      readDoubleArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readLong

      public long readLong(String name, long defVal) throws IOException
      Specified by:
      readLong in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readLongArray

      public long[] readLongArray(String name, long[] defVal) throws IOException
      Specified by:
      readLongArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readLongArray2D

      public long[][] readLongArray2D(String name, long[][] defVal) throws IOException
      Specified by:
      readLongArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readShort

      public short readShort(String name, short defVal) throws IOException
      Specified by:
      readShort in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readShortArray

      public short[] readShortArray(String name, short[] defVal) throws IOException
      Specified by:
      readShortArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readShortArray2D

      public short[][] readShortArray2D(String name, short[][] defVal) throws IOException
      Specified by:
      readShortArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readBoolean

      public boolean readBoolean(String name, boolean defVal) throws IOException
      Specified by:
      readBoolean in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readBooleanArray

      public boolean[] readBooleanArray(String name, boolean[] defVal) throws IOException
      Specified by:
      readBooleanArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readBooleanArray2D

      public boolean[][] readBooleanArray2D(String name, boolean[][] defVal) throws IOException
      Specified by:
      readBooleanArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readString

      public String readString(String name, String defVal) throws IOException
      Specified by:
      readString in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readStringArray

      public String[] readStringArray(String name, String[] defVal) throws IOException
      Specified by:
      readStringArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readStringArray2D

      public String[][] readStringArray2D(String name, String[][] defVal) throws IOException
      Specified by:
      readStringArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readBitSet

      public BitSet readBitSet(String name, BitSet defVal) throws IOException
      Specified by:
      readBitSet in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavable

      public com.jme3.export.Savable readSavable(String name, com.jme3.export.Savable defVal) throws IOException
      Specified by:
      readSavable in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableArray

      public com.jme3.export.Savable[] readSavableArray(String name, com.jme3.export.Savable[] defVal) throws IOException
      Specified by:
      readSavableArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableArray2D

      public com.jme3.export.Savable[][] readSavableArray2D(String name, com.jme3.export.Savable[][] defVal) throws IOException
      Specified by:
      readSavableArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableArrayList

      public ArrayList<com.jme3.export.Savable> readSavableArrayList(String name, ArrayList defVal) throws IOException
      Specified by:
      readSavableArrayList in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableArrayListArray

      public ArrayList<com.jme3.export.Savable>[] readSavableArrayListArray(String name, ArrayList[] defVal) throws IOException
      Specified by:
      readSavableArrayListArray in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableArrayListArray2D

      public ArrayList<com.jme3.export.Savable>[][] readSavableArrayListArray2D(String name, ArrayList[][] defVal) throws IOException
      Specified by:
      readSavableArrayListArray2D in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readFloatBufferArrayList

      public ArrayList<FloatBuffer> readFloatBufferArrayList(String name, ArrayList<FloatBuffer> defVal) throws IOException
      Specified by:
      readFloatBufferArrayList in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readSavableMap

      public Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> readSavableMap(String name, Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      readSavableMap in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readStringSavableMap

      public Map<String,? extends com.jme3.export.Savable> readStringSavableMap(String name, Map<String,? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      readStringSavableMap in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readIntSavableMap

      public com.jme3.util.IntMap<? extends com.jme3.export.Savable> readIntSavableMap(String name, com.jme3.util.IntMap<? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      readIntSavableMap in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readFloatBuffer

      public FloatBuffer readFloatBuffer(String name, FloatBuffer defVal) throws IOException
      reads from currentElem if name is null
      Specified by:
      readFloatBuffer in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readIntBuffer

      public IntBuffer readIntBuffer(String name, IntBuffer defVal) throws IOException
      Specified by:
      readIntBuffer in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readByteBuffer

      public ByteBuffer readByteBuffer(String name, ByteBuffer defVal) throws IOException
      Specified by:
      readByteBuffer in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readShortBuffer

      public ShortBuffer readShortBuffer(String name, ShortBuffer defVal) throws IOException
      Specified by:
      readShortBuffer in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readByteBufferArrayList

      public ArrayList<ByteBuffer> readByteBufferArrayList(String name, ArrayList<ByteBuffer> defVal) throws IOException
      Specified by:
      readByteBufferArrayList in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • readEnum

      public <T extends Enum<T>> T readEnum(String name, Class<T> enumType, T defVal) throws IOException
      Specified by:
      readEnum in interface com.jme3.export.InputCapsule
      Throws:
      IOException
    • parseTokens

      protected String[] parseTokens(String inString)