Interface FieldCompressor
- All Known Implementing Classes:
BinaryFieldEncoder
,RangeCompressor
public interface FieldCompressor
All classes capable of compressing a field must implement this interface
- Version:
- $Revision: 1.3 $
- Author:
- Alan Hudson.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSupport
(int fieldType, int method) Can this fieldCompressor support this compression methodvoid
compress
(DataOutputStream dos, int fieldType, boolean data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, boolean[] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, double data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, double[] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, double[][] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, float data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, float[] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, float[][] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, int data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, int[] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, long data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, long[] data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, String data) Compress this field and deposit the output to the bitstreamvoid
compress
(DataOutputStream dos, int fieldType, String[] data) Compress this field and deposit the output to the bitstream
-
Method Details
-
canSupport
boolean canSupport(int fieldType, int method) Can this fieldCompressor support this compression method- Parameters:
fieldType
- What type of field, defined in FieldConstants.method
- What method of compression. 0-127 defined by Web3D Consortium.- Returns:
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-
compress
Compress this field and deposit the output to the bitstream- Parameters:
dos
- The stream to output the resultfieldType
- The type of field to compress from FieldConstants.data
- The field data- Throws:
IOException
-