Class DOMOutputCapsule

java.lang.Object
com.jme3.export.xml.DOMOutputCapsule
All Implemented Interfaces:
com.jme3.export.OutputCapsule

public class DOMOutputCapsule extends Object implements com.jme3.export.OutputCapsule
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
  • Constructor Details

    • DOMOutputCapsule

      public DOMOutputCapsule(Document doc, com.jme3.export.JmeExporter exporter)
  • Method Details

    • getDoc

      public Document getDoc()
    • write

      public void write(byte value, String name, byte defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(byte[] value, String name, byte[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(byte[][] value, String name, byte[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(int value, String name, int defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(int[] value, String name, int[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(int[][] value, String name, int[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(float value, String name, float defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(float[] value, String name, float[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(float[][] value, String name, float[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(double value, String name, double defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(double[] value, String name, double[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(double[][] value, String name, double[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(long value, String name, long defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(long[] value, String name, long[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(long[][] value, String name, long[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(short value, String name, short defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(short[] value, String name, short[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(short[][] value, String name, short[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(boolean value, String name, boolean defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(boolean[] value, String name, boolean[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(boolean[][] value, String name, boolean[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(String value, String name, String defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(String[] value, String name, String[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(String[][] value, String name, String[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(BitSet value, String name, BitSet defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(com.jme3.export.Savable object, String name, com.jme3.export.Savable defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(com.jme3.export.Savable[] objects, String name, com.jme3.export.Savable[] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(com.jme3.export.Savable[][] value, String name, com.jme3.export.Savable[][] defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeSavableArrayList

      public void writeSavableArrayList(ArrayList array, String name, ArrayList defVal) throws IOException
      Specified by:
      writeSavableArrayList in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeSavableArrayListArray

      public void writeSavableArrayListArray(ArrayList[] objects, String name, ArrayList[] defVal) throws IOException
      Specified by:
      writeSavableArrayListArray in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeSavableArrayListArray2D

      public void writeSavableArrayListArray2D(ArrayList[][] value, String name, ArrayList[][] defVal) throws IOException
      Specified by:
      writeSavableArrayListArray2D in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeFloatBufferArrayList

      public void writeFloatBufferArrayList(ArrayList<FloatBuffer> array, String name, ArrayList<FloatBuffer> defVal) throws IOException
      Specified by:
      writeFloatBufferArrayList in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeSavableMap

      public void writeSavableMap(Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> map, String name, Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      writeSavableMap in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeStringSavableMap

      public void writeStringSavableMap(Map<String,? extends com.jme3.export.Savable> map, String name, Map<String,? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      writeStringSavableMap in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeIntSavableMap

      public void writeIntSavableMap(com.jme3.util.IntMap<? extends com.jme3.export.Savable> map, String name, com.jme3.util.IntMap<? extends com.jme3.export.Savable> defVal) throws IOException
      Specified by:
      writeIntSavableMap in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(FloatBuffer value, String name, FloatBuffer defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(IntBuffer value, String name, IntBuffer defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(ByteBuffer value, String name, ByteBuffer defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(ShortBuffer value, String name, ShortBuffer defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • write

      public void write(Enum value, String name, Enum defVal) throws IOException
      Specified by:
      write in interface com.jme3.export.OutputCapsule
      Throws:
      IOException
    • writeByteBufferArrayList

      public void writeByteBufferArrayList(ArrayList<ByteBuffer> array, String name, ArrayList<ByteBuffer> defVal) throws IOException
      Specified by:
      writeByteBufferArrayList in interface com.jme3.export.OutputCapsule
      Throws:
      IOException