|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
All classes capable of decompressing a field must implement this interface
| Method Summary | |
boolean |
canSupport(int fieldType,
int method)
Can this fieldCompressor support this compression method |
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. |
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. |
| Method Detail |
public boolean canSupport(int fieldType,
int method)
fieldType - 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
java.io.IOException
public int decompressInt(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public boolean decompressBoolean(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public float decompressFloat(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public void decompressFloat(java.io.DataInputStream dis,
int fieldType,
float[][] data)
throws java.io.IOException
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public long decompressLong(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public double decompressDouble(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public void decompressDouble(java.io.DataInputStream dis,
int fieldType,
double[][] data)
throws java.io.IOException
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
public java.lang.String decompressString(java.io.DataInputStream dis,
int fieldType)
throws java.io.IOException
dis - 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
dis - The stream to read fromfieldType - The type of field to compress from FieldConstants.data - The field data, must be preallocated
java.io.IOException
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||