|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
ch.rgw.compress.HuffmanOutputStream
public class HuffmanOutputStream
A Stream that compresses its output on the fly with the Huffmann algorithm
A Huffman tree can be provided by the caller. The tree can be declared dynamic to be recomputed
regularly (for not in advance analyzable Stream with very variable data).
Constructor Summary | |
---|---|
HuffmanOutputStream(java.io.OutputStream sup,
HuffmanTree tr,
int dynamic)
The only Constructor |
Method Summary | |
---|---|
void |
close()
terminate the stream: An EOF marker is written and he Stream is closed. |
void |
flush()
|
static java.lang.String |
Version()
|
void |
write(int c)
|
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HuffmanOutputStream(java.io.OutputStream sup, HuffmanTree tr, int dynamic) throws java.io.IOException
sup
- a Stream to receive the output ultimatelytree
- tree a precomputed Huffman tree or null. If null, a standard tree for textual
files will be used.dynamic
- if !=0: The tree will be recomputed every java.io.IOException
Method Detail |
---|
public static java.lang.String Version()
public void write(int c) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |