public class J3MOutputCapsule
extends java.lang.Object
implements com.jme3.export.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(com.jme3.export.Savable value) |
protected static java.lang.String |
formatMatParamTexture(com.jme3.material.MatParamTexture param) |
protected static java.lang.String |
formatWrapMode(com.jme3.texture.Texture texVal,
com.jme3.texture.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(com.jme3.export.Savable[][] objects,
java.lang.String name,
com.jme3.export.Savable[][] defVal) |
void |
write(com.jme3.export.Savable[] objects,
java.lang.String name,
com.jme3.export.Savable[] defVal) |
void |
write(com.jme3.export.Savable object,
java.lang.String name,
com.jme3.export.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(com.jme3.util.IntMap<? extends com.jme3.export.Savable> map,
java.lang.String name,
com.jme3.util.IntMap<? extends com.jme3.export.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 com.jme3.export.Savable,? extends com.jme3.export.Savable> map,
java.lang.String name,
java.util.Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> defVal) |
void |
writeStringSavableMap(java.util.Map<java.lang.String,? extends com.jme3.export.Savable> map,
java.lang.String name,
java.util.Map<java.lang.String,? extends com.jme3.export.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.IOExceptionprotected void writeParameter(java.io.OutputStreamWriter out,
java.lang.String name,
java.lang.String value)
throws java.io.IOException
java.io.IOExceptionpublic 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 com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeStringSavableMap(java.util.Map<java.lang.String,? extends com.jme3.export.Savable> map,
java.lang.String name,
java.util.Map<java.lang.String,? extends com.jme3.export.Savable> defVal)
throws java.io.IOException
writeStringSavableMap in interface com.jme3.export.OutputCapsulejava.io.IOExceptionprotected java.lang.String format(com.jme3.export.Savable value)
protected static java.lang.String formatMatParamTexture(com.jme3.material.MatParamTexture param)
protected static java.lang.String formatWrapMode(com.jme3.texture.Texture texVal,
com.jme3.texture.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 com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(float value,
java.lang.String name,
float defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(float[] value,
java.lang.String name,
float[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(float[][] value,
java.lang.String name,
float[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(double value,
java.lang.String name,
double defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(double[] value,
java.lang.String name,
double[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(double[][] value,
java.lang.String name,
double[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(long value,
java.lang.String name,
long defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(long[] value,
java.lang.String name,
long[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(long[][] value,
java.lang.String name,
long[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(short value,
java.lang.String name,
short defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(short[] value,
java.lang.String name,
short[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(short[][] value,
java.lang.String name,
short[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(boolean[] value,
java.lang.String name,
boolean[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(boolean[][] value,
java.lang.String name,
boolean[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.lang.String value,
java.lang.String name,
java.lang.String defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.lang.String[] value,
java.lang.String name,
java.lang.String[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.lang.String[][] value,
java.lang.String name,
java.lang.String[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.util.BitSet value,
java.lang.String name,
java.util.BitSet defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(com.jme3.export.Savable object,
java.lang.String name,
com.jme3.export.Savable defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(com.jme3.export.Savable[] objects,
java.lang.String name,
com.jme3.export.Savable[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(com.jme3.export.Savable[][] objects,
java.lang.String name,
com.jme3.export.Savable[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeSavableArrayList(java.util.ArrayList array,
java.lang.String name,
java.util.ArrayList defVal)
throws java.io.IOException
writeSavableArrayList in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeSavableArrayListArray(java.util.ArrayList[] array,
java.lang.String name,
java.util.ArrayList[] defVal)
throws java.io.IOException
writeSavableArrayListArray in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeSavableArrayListArray2D(java.util.ArrayList[][] array,
java.lang.String name,
java.util.ArrayList[][] defVal)
throws java.io.IOException
writeSavableArrayListArray2D in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic 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 com.jme3.export.OutputCapsulejava.io.IOExceptionpublic 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 com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeSavableMap(java.util.Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> map,
java.lang.String name,
java.util.Map<? extends com.jme3.export.Savable,? extends com.jme3.export.Savable> defVal)
throws java.io.IOException
writeSavableMap in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void writeIntSavableMap(com.jme3.util.IntMap<? extends com.jme3.export.Savable> map,
java.lang.String name,
com.jme3.util.IntMap<? extends com.jme3.export.Savable> defVal)
throws java.io.IOException
writeIntSavableMap in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.nio.FloatBuffer value,
java.lang.String name,
java.nio.FloatBuffer defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.nio.IntBuffer value,
java.lang.String name,
java.nio.IntBuffer defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.nio.ByteBuffer value,
java.lang.String name,
java.nio.ByteBuffer defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(java.nio.ShortBuffer value,
java.lang.String name,
java.nio.ShortBuffer defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(byte value,
java.lang.String name,
byte defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(byte[] value,
java.lang.String name,
byte[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(byte[][] value,
java.lang.String name,
byte[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(int value,
java.lang.String name,
int defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(int[] value,
java.lang.String name,
int[] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOExceptionpublic void write(int[][] value,
java.lang.String name,
int[][] defVal)
throws java.io.IOException
write in interface com.jme3.export.OutputCapsulejava.io.IOException