|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
org.freehep.util.io.RunLengthOutputStream
public class RunLengthOutputStream
The RunLengthOutputStream encodes data as Run Length encoding. The exact definition of Run Length encoding can be found in the PostScript Language Reference (3rd ed.) chapter 3.13.3.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Fields inherited from interface org.freehep.util.io.RunLength |
|---|
EOD, LENGTH |
| Constructor Summary | |
|---|---|
RunLengthOutputStream(OutputStream out)
Create a Run Length output stream |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
finish()
Finishes the current outputstream (compresses, flushes, caluclates CRC) and writes whatever is left in the buffers, but does not close the stream. |
void |
write(int a)
|
| Methods inherited from class java.io.FilterOutputStream |
|---|
flush, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RunLengthOutputStream(OutputStream out)
out - stream to write| Method Detail |
|---|
public void write(int a)
throws IOException
write in class FilterOutputStreamIOException
public void finish()
throws IOException
FinishableOutputStream
finish in interface FinishableOutputStreamIOException - if write fails
public void close()
throws IOException
close in interface Closeableclose in class FilterOutputStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||