Xj3D VRML/X3D Code API

org.web3d.vrml.export.compressors
Interface FieldCompressor

All Known Implementing Classes:
BinaryFieldEncoder

public interface FieldCompressor

All classes capable of compressing a field must implement this interface

Version:
$Revision: 1.3 $
Author:
Alan Hudson.

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
 

Method Detail

canSupport

public 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.

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     int data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     int[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     boolean data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     boolean[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     float data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     float[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     float[][] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     long data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     long[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     double data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     double[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     double[][] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     java.lang.String data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

compress

public void compress(java.io.DataOutputStream dos,
                     int fieldType,
                     java.lang.String[] data)
              throws java.io.IOException
Compress this field and deposit the output to the bitstream

Parameters:
dos - The stream to output the result
fieldType - The type of field to compress from FieldConstants.
data - The field data
Throws:
java.io.IOException

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium