sam.io
Class Huffman.LeafInputStream

java.lang.Object
  |
  +--sam.io.Huffman.LeafInputStream
Enclosing class:
Huffman

protected class Huffman.LeafInputStream
extends java.lang.Object

Class for reading leaves from an Huffman-compressed InputStream


Constructor Summary
Huffman.LeafInputStream(java.io.InputStream delegee)
           
 
Method Summary
 void close()
           
 Huffman.Leaf read()
          Uncompresses next pattern from a Huffman-compressed stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Huffman.LeafInputStream

public Huffman.LeafInputStream(java.io.InputStream delegee)
Method Detail

read

public Huffman.Leaf read()
                  throws java.io.IOException
Uncompresses next pattern from a Huffman-compressed stream.

Returns:
null if end of stream
Throws:
java.io.EOFException - if the compressed stream did not end after a whole compressed bits pattern
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException