|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.export.compressors.BinaryFieldEncoder
A field compressor that just encodes the data in binary form.
| Constructor Summary | |
BinaryFieldEncoder()
|
|
| Method Summary | |
boolean |
canSupport(int fieldType,
int method)
Can this fieldCompressor support this compression method |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
boolean data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
boolean[] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
double data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
double[] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
double[][] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
float data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
float[] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
float[][] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
int data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
int[] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
long data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
long[] data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
java.lang.String data)
Compress this field and deposit the output to the bitstream |
void |
compress(java.io.DataOutputStream dos,
int fieldType,
java.lang.String[] data)
Compress this field and deposit the output to the bitstream |
boolean |
decompressBoolean(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressBoolean(java.io.DataInputStream dis,
int fieldType,
boolean[] data)
Decompress this field. |
double |
decompressDouble(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressDouble(java.io.DataInputStream dis,
int fieldType,
double[] data)
Decompress this field. |
void |
decompressDouble(java.io.DataInputStream dis,
int fieldType,
double[][] data)
Decompress this field. |
float |
decompressFloat(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressFloat(java.io.DataInputStream dis,
int fieldType,
float[] data)
Decompress this field.If the array is too small it will be realloacted. |
void |
decompressFloat(java.io.DataInputStream dis,
int fieldType,
float[][] data)
Decompress this field. |
int |
decompressInt(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressInt(java.io.DataInputStream dis,
int fieldType,
int[] data)
Decompress this field. |
long |
decompressLong(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressLong(java.io.DataInputStream dis,
int fieldType,
long[] data)
Decompress this field. |
java.lang.String |
decompressString(java.io.DataInputStream dis,
int fieldType)
Decompress this field. |
void |
decompressString(java.io.DataInputStream dis,
int fieldType,
java.lang.String[] data)
Decompress this field. |
int |
nextLength(java.io.DataInputStream dis)
Get the length of variable length field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BinaryFieldEncoder()
| Method Detail |
public boolean canSupport(int fieldType,
int method)
canSupport in interface FieldCompressorfieldType - What type of field, defined in FieldConstants.method - What method of compression. 0-127 defined by Web3D Consortium.
public int nextLength(java.io.DataInputStream dis)
throws java.io.IOException
nextLength in interface FieldDecompressorjava.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
int data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
int[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
boolean data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
boolean[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
float data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
float[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
float[][] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
long data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
long[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
double data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
double[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
double[][] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
java.lang.String data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void compress(java.io.DataOutputStream dos,
int fieldType,
java.lang.String[] data)
throws java.io.IOException
compress in interface FieldCompressordos - The stream to output the resultfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public int decompressInt(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressInt in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressInt(java.io.DataInputStream dis,
int fieldType,
int[] data)
throws java.io.IOException
decompressInt in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public boolean decompressBoolean(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressBoolean in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressBoolean(java.io.DataInputStream dis,
int fieldType,
boolean[] data)
throws java.io.IOException
decompressBoolean in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public float decompressFloat(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressFloat in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressFloat(java.io.DataInputStream dis,
int fieldType,
float[] data)
throws java.io.IOException
decompressFloat in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void decompressFloat(java.io.DataInputStream dis,
int fieldType,
float[][] data)
throws java.io.IOException
decompressFloat in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public long decompressLong(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressLong in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressLong(java.io.DataInputStream dis,
int fieldType,
long[] data)
throws java.io.IOException
decompressLong in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public double decompressDouble(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressDouble in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressDouble(java.io.DataInputStream dis,
int fieldType,
double[] data)
throws java.io.IOException
decompressDouble in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public void decompressDouble(java.io.DataInputStream dis,
int fieldType,
double[][] data)
throws java.io.IOException
decompressDouble in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
public java.lang.String decompressString(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
decompressString in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.
java.io.IOException
public void decompressString(java.io.DataInputStream dis,
int fieldType,
java.lang.String[] data)
throws java.io.IOException
decompressString in interface FieldDecompressordis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data
java.io.IOException
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||