org.freehep.util.io
Class FlateOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--java.util.zip.DeflaterOutputStream
|
+--org.freehep.util.io.FlateOutputStream
- All Implemented Interfaces:
- FinishableOutputStream, ImageOutput
- public class FlateOutputStream
- extends DeflaterOutputStream
- implements ImageOutput, FinishableOutputStream
The FlateOutputStream uses the Deflate mechanism to compress data.
The exact definition of Deflate encoding can be found
in the PostScript Language Reference (3rd ed.) chapter 3.13.3.
- Version:
- $Id: FlateOutputStream.java,v 1.3 2003/05/07 14:30:03 duns Exp $
- Author:
- Mark Donszelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlateOutputStream
public FlateOutputStream(OutputStream out)
finish
public void finish()
throws IOException
- Specified by:
finish
in interface FinishableOutputStream
- Overrides:
finish
in class DeflaterOutputStream
IOException
writeImage
public int writeImage(Image image,
Color bkg,
String code,
int pad,
ImageObserver observer)
throws IOException
- Specified by:
writeImage
in interface ImageOutput
IOException
writeImage
public int writeImage(RenderedImage image,
Color bkg,
String code,
int pad)
throws IOException
- Specified by:
writeImage
in interface ImageOutput
IOException
Copyright © 2000-2003 FreeHEP, All Rights Reserved.