|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.export.compressors.HuffmanTable
Prototype Huffman node. Borrowed original impl from Sun HuffmanNode, need to decide if copyright still stands for heavily modified code.
| Method Summary | |
void |
clear()
Clear this HuffmanTable instance. |
void |
computeTags()
Compute optimized tags for each position, color, and normal entry. |
void |
decode(byte[] tags,
int[] data)
Decode a tag into a HuffmanNode. |
HuffmanNode |
getEntry(HuffmanNode node)
|
void |
print()
Print the contents of this instance to standard out. |
void |
readDict(java.io.InputStream dis)
Read the dictonary from a stream. |
void |
setDataLength(int dataLength)
Set the length of each data element in bits. |
int |
streamBits()
Get the total number of bits needed to writeout the stream used to create this table. |
void |
writeDict(java.io.DataOutputStream dos)
Write the dictionary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setDataLength(int dataLength)
dataLength - The length.public int streamBits()
public HuffmanNode getEntry(HuffmanNode node)
public void writeDict(java.io.DataOutputStream dos)
throws java.io.IOException
dos - The stream to write to.
java.io.IOException
public void readDict(java.io.InputStream dis)
throws java.io.IOException
dis - The stream.
java.io.IOException
public void decode(byte[] tags,
int[] data)
tags - The huffman tagdata - An array to put the decoded node intopublic void clear()
public void computeTags()
public void print()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||