|
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
org.web3d.vrml.export.compressors.RangeCompressor
A FieldCompressor that works by compressing the range of data. Floats are converted to ints before range compression.
| Constructor Summary | |
RangeCompressor()
|
|
| Method Summary | |
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 |
| Methods inherited from class org.web3d.vrml.export.compressors.BinaryFieldEncoder |
canSupport, compress, compress, compress, compress, compress, compress, compress, compress, compress, compress, compress, compress, decompressBoolean, decompressBoolean, decompressDouble, decompressDouble, decompressDouble, decompressFloat, decompressFloat, decompressFloat, decompressInt, decompressInt, decompressLong, decompressLong, decompressString, decompressString, nextLength |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RangeCompressor()
| Method Detail |
public void compress(java.io.DataOutputStream dos,
int fieldType,
int[] data)
throws java.io.IOException
compress in interface FieldCompressorcompress in class BinaryFieldEncoderdos - 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 FieldCompressorcompress in class BinaryFieldEncoderdos - The stream to output the resultfieldType - 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 | ||||||||||