Xj3D VRML/X3D Code API

org.web3d.vrml.export
Class BinaryTester

java.lang.Object
  extended byorg.web3d.vrml.export.BinaryTester

public class BinaryTester
extends java.lang.Object


Constructor Summary
BinaryTester()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void parseFile(java.io.DataInputStream dis)
           
 void readFields(VRMLNode node)
           
 void readHeader()
           
 boolean readNode(BitUnpacker bup)
          Read a node from the stream.
 void readOps()
           
 void readUSE(BitUnpacker bup)
          Read a USE from the stream.
 void registerFieldDecompressor(int fieldType, int method, FieldDecompressor compressor)
          Register a class for a field/compression method.
 void registerNodeCompressor(int nodeNumber, int method, NodeCompressor compressor)
          Register a class for a node/compression method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTester

public BinaryTester()
Method Detail

main

public static void main(java.lang.String[] args)

parseFile

public void parseFile(java.io.DataInputStream dis)
               throws java.io.IOException
Throws:
java.io.IOException

readHeader

public void readHeader()
                throws java.io.IOException
Throws:
java.io.IOException

readOps

public void readOps()
             throws java.io.IOException
Throws:
java.io.IOException

readUSE

public void readUSE(BitUnpacker bup)
             throws java.io.IOException
Read a USE from the stream.

Throws:
java.io.IOException

readNode

public boolean readNode(BitUnpacker bup)
                 throws java.io.IOException
Read a node from the stream. Returns false is it was an end of field marker. True if a node was read.

Throws:
java.io.IOException

readFields

public void readFields(VRMLNode node)
                throws java.io.IOException
Throws:
java.io.IOException

registerFieldDecompressor

public void registerFieldDecompressor(int fieldType,
                                      int method,
                                      FieldDecompressor compressor)
Register a class for a field/compression method.

Parameters:
fieldType - For what field type, defined in FieldConstants.
method - For what compression method.
compressor - What class implements the FieldCompressor interface.

registerNodeCompressor

public void registerNodeCompressor(int nodeNumber,
                                   int method,
                                   NodeCompressor compressor)
Register a class for a node/compression method.

Parameters:
nodeNumber - For what field type, defined in FieldConstants.
method - For what compression method.
compressor - What class implements the FieldCompressor interface.

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium