Interface NodeCompressor
-
Method Summary
Modifier and TypeMethodDescriptionint[]compress(VRMLNodeType node) Compress the given Node.voiddecompress(int[] data) Decompress the data.voidfillData(String nodeName, BinaryContentHandler ch) Fill in the data handled by the compressor.Get any metadata the encoder would like to write to the file.booleanhandleData(String nodeName, String fieldName) Checks whether this compressors handles this data.
-
Method Details
-
compress
Compress the given Node.- Parameters:
node- The geometry to compress- Returns:
- An int array for the geometry
-
decompress
void decompress(int[] data) Decompress the data.- Parameters:
data- The compressed data
-
handleData
-
fillData
Fill in the data handled by the compressor.- Parameters:
nodeName- The nodeNamech- The handler to write to
-
getEncoderMetadata
String getEncoderMetadata()Get any metadata the encoder would like to write to the file.- Returns:
- The metadata in X3D XML encoding
-