public class J3MOutputCapsule extends java.lang.Object implements OutputCapsule
Modifier and Type | Field and Description |
---|---|
protected J3MExporter |
exporter |
Constructor and Description |
---|
J3MOutputCapsule(J3MExporter exporter) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected java.lang.String |
format(Savable value) |
protected static java.lang.String |
formatMatParamTexture(MatParamTexture param) |
protected static java.lang.String |
formatWrapMode(Texture texVal,
Texture.WrapAxis axis) |
protected void |
putParameter(java.lang.String name,
java.lang.String value) |
void |
write(java.util.BitSet value,
java.lang.String name,
java.util.BitSet defVal) |
void |
write(boolean[][] value,
java.lang.String name,
boolean[][] defVal) |
void |
write(boolean[] value,
java.lang.String name,
boolean[] defVal) |
void |
write(boolean value,
java.lang.String name,
boolean defVal) |
void |
write(byte[][] value,
java.lang.String name,
byte[][] defVal) |
void |
write(byte[] value,
java.lang.String name,
byte[] defVal) |
void |
write(java.nio.ByteBuffer value,
java.lang.String name,
java.nio.ByteBuffer defVal) |
void |
write(byte value,
java.lang.String name,
byte defVal) |
void |
write(double[][] value,
java.lang.String name,
double[][] defVal) |
void |
write(double[] value,
java.lang.String name,
double[] defVal) |
void |
write(double value,
java.lang.String name,
double defVal) |
void |
write(java.lang.Enum value,
java.lang.String name,
java.lang.Enum defVal) |
void |
write(float[][] value,
java.lang.String name,
float[][] defVal) |
void |
write(float[] value,
java.lang.String name,
float[] defVal) |
void |
write(java.nio.FloatBuffer value,
java.lang.String name,
java.nio.FloatBuffer defVal) |
void |
write(float value,
java.lang.String name,
float defVal) |
void |
write(int[][] value,
java.lang.String name,
int[][] defVal) |
void |
write(int[] value,
java.lang.String name,
int[] defVal) |
void |
write(java.nio.IntBuffer value,
java.lang.String name,
java.nio.IntBuffer defVal) |
void |
write(int value,
java.lang.String name,
int defVal) |
void |
write(long[][] value,
java.lang.String name,
long[][] defVal) |
void |
write(long[] value,
java.lang.String name,
long[] defVal) |
void |
write(long value,
java.lang.String name,
long defVal) |
void |
write(Savable[][] objects,
java.lang.String name,
Savable[][] defVal) |
void |
write(Savable[] objects,
java.lang.String name,
Savable[] defVal) |
void |
write(Savable object,
java.lang.String name,
Savable defVal) |
void |
write(short[][] value,
java.lang.String name,
short[][] defVal) |
void |
write(short[] value,
java.lang.String name,
short[] defVal) |
void |
write(java.nio.ShortBuffer value,
java.lang.String name,
java.nio.ShortBuffer defVal) |
void |
write(short value,
java.lang.String name,
short defVal) |
void |
write(java.lang.String[][] value,
java.lang.String name,
java.lang.String[][] defVal) |
void |
write(java.lang.String[] value,
java.lang.String name,
java.lang.String[] defVal) |
void |
write(java.lang.String value,
java.lang.String name,
java.lang.String defVal) |
void |
writeByteBufferArrayList(java.util.ArrayList<java.nio.ByteBuffer> array,
java.lang.String name,
java.util.ArrayList<java.nio.ByteBuffer> defVal) |
void |
writeFloatBufferArrayList(java.util.ArrayList<java.nio.FloatBuffer> array,
java.lang.String name,
java.util.ArrayList<java.nio.FloatBuffer> defVal) |
void |
writeIntSavableMap(IntMap<? extends Savable> map,
java.lang.String name,
IntMap<? extends Savable> defVal) |
protected void |
writeParameter(java.io.OutputStreamWriter out,
java.lang.String name,
java.lang.String value) |
void |
writeSavableArrayList(java.util.ArrayList array,
java.lang.String name,
java.util.ArrayList defVal) |
void |
writeSavableArrayListArray(java.util.ArrayList[] array,
java.lang.String name,
java.util.ArrayList[] defVal) |
void |
writeSavableArrayListArray2D(java.util.ArrayList[][] array,
java.lang.String name,
java.util.ArrayList[][] defVal) |
void |
writeSavableMap(java.util.Map<? extends Savable,? extends Savable> map,
java.lang.String name,
java.util.Map<? extends Savable,? extends Savable> defVal) |
void |
writeStringSavableMap(java.util.Map<java.lang.String,? extends Savable> map,
java.lang.String name,
java.util.Map<java.lang.String,? extends Savable> defVal) |
void |
writeToStream(java.io.OutputStreamWriter out) |
protected final J3MExporter exporter
public J3MOutputCapsule(J3MExporter exporter)
public void writeToStream(java.io.OutputStreamWriter out) throws java.io.IOException
java.io.IOException
protected void writeParameter(java.io.OutputStreamWriter out, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public void clear()
protected void putParameter(java.lang.String name, java.lang.String value)
public void write(boolean value, java.lang.String name, boolean defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void writeStringSavableMap(java.util.Map<java.lang.String,? extends Savable> map, java.lang.String name, java.util.Map<java.lang.String,? extends Savable> defVal) throws java.io.IOException
writeStringSavableMap
in interface OutputCapsule
java.io.IOException
protected java.lang.String format(Savable value)
protected static java.lang.String formatMatParamTexture(MatParamTexture param)
protected static java.lang.String formatWrapMode(Texture texVal, Texture.WrapAxis axis)
public void write(java.lang.Enum value, java.lang.String name, java.lang.Enum defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(float value, java.lang.String name, float defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(float[] value, java.lang.String name, float[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(float[][] value, java.lang.String name, float[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(double value, java.lang.String name, double defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(double[] value, java.lang.String name, double[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(double[][] value, java.lang.String name, double[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(long value, java.lang.String name, long defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(long[] value, java.lang.String name, long[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(long[][] value, java.lang.String name, long[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(short value, java.lang.String name, short defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(short[] value, java.lang.String name, short[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(short[][] value, java.lang.String name, short[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(boolean[] value, java.lang.String name, boolean[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(boolean[][] value, java.lang.String name, boolean[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.lang.String value, java.lang.String name, java.lang.String defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.lang.String[] value, java.lang.String name, java.lang.String[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.lang.String[][] value, java.lang.String name, java.lang.String[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.util.BitSet value, java.lang.String name, java.util.BitSet defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(Savable object, java.lang.String name, Savable defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(Savable[] objects, java.lang.String name, Savable[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(Savable[][] objects, java.lang.String name, Savable[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void writeSavableArrayList(java.util.ArrayList array, java.lang.String name, java.util.ArrayList defVal) throws java.io.IOException
writeSavableArrayList
in interface OutputCapsule
java.io.IOException
public void writeSavableArrayListArray(java.util.ArrayList[] array, java.lang.String name, java.util.ArrayList[] defVal) throws java.io.IOException
writeSavableArrayListArray
in interface OutputCapsule
java.io.IOException
public void writeSavableArrayListArray2D(java.util.ArrayList[][] array, java.lang.String name, java.util.ArrayList[][] defVal) throws java.io.IOException
writeSavableArrayListArray2D
in interface OutputCapsule
java.io.IOException
public void writeFloatBufferArrayList(java.util.ArrayList<java.nio.FloatBuffer> array, java.lang.String name, java.util.ArrayList<java.nio.FloatBuffer> defVal) throws java.io.IOException
writeFloatBufferArrayList
in interface OutputCapsule
java.io.IOException
public void writeByteBufferArrayList(java.util.ArrayList<java.nio.ByteBuffer> array, java.lang.String name, java.util.ArrayList<java.nio.ByteBuffer> defVal) throws java.io.IOException
writeByteBufferArrayList
in interface OutputCapsule
java.io.IOException
public void writeSavableMap(java.util.Map<? extends Savable,? extends Savable> map, java.lang.String name, java.util.Map<? extends Savable,? extends Savable> defVal) throws java.io.IOException
writeSavableMap
in interface OutputCapsule
java.io.IOException
public void writeIntSavableMap(IntMap<? extends Savable> map, java.lang.String name, IntMap<? extends Savable> defVal) throws java.io.IOException
writeIntSavableMap
in interface OutputCapsule
java.io.IOException
public void write(java.nio.FloatBuffer value, java.lang.String name, java.nio.FloatBuffer defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.nio.IntBuffer value, java.lang.String name, java.nio.IntBuffer defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.nio.ByteBuffer value, java.lang.String name, java.nio.ByteBuffer defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(java.nio.ShortBuffer value, java.lang.String name, java.nio.ShortBuffer defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(byte value, java.lang.String name, byte defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(byte[] value, java.lang.String name, byte[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(byte[][] value, java.lang.String name, byte[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(int value, java.lang.String name, int defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(int[] value, java.lang.String name, int[] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException
public void write(int[][] value, java.lang.String name, int[][] defVal) throws java.io.IOException
write
in interface OutputCapsule
java.io.IOException