Xj3D VRML/X3D Code API

org.web3d.vrml.export.compressors
Class HuffmanNode

java.lang.Object
  extended byorg.web3d.vrml.export.compressors.HuffmanNode

public class HuffmanNode
extends java.lang.Object

Prototype Huffman node. Borrowed original impl from Sun HuffmanNode, need to decide if copyright still stands for heavily modified code.

Version:
$Revision: 1.2 $

Field Summary
protected  HuffmanNode child0
           
protected  HuffmanNode child1
           
protected  int frequency
           
 int tag
           
 int tagLength
           
 
Constructor Summary
HuffmanNode()
           
 
Method Summary
 void addCount()
           
 java.lang.String toString()
           
 void writeData(BitPacker packer, int len)
          Write the data for this node out to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

public int tag

tagLength

public int tagLength

frequency

protected int frequency

child0

protected HuffmanNode child0

child1

protected HuffmanNode child1
Constructor Detail

HuffmanNode

public HuffmanNode()
Method Detail

addCount

public void addCount()

writeData

public void writeData(BitPacker packer,
                      int len)
               throws java.io.IOException
Write the data for this node out to a stream.

Parameters:
packer - The place to write the bits
len - The number of bits to use
Throws:
java.io.IOException

toString

public java.lang.String toString()

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium