org.freehep.util.io
Class RunLengthOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.freehep.util.io.RunLengthOutputStream
- All Implemented Interfaces:
- FinishableOutputStream, RunLength
- public class RunLengthOutputStream
- extends FilterOutputStream
- implements RunLength, FinishableOutputStream
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.
- Version:
- $Id: RunLengthOutputStream.java,v 1.2 2002/02/27 22:05:06 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- RunLengthOutputStream.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunLengthOutputStream
public RunLengthOutputStream(OutputStream out)
write
public void write(int a)
throws IOException
- Throws:
IOException
finish
public void finish()
throws IOException
- Specified by:
finish
in interface FinishableOutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.