org.freehep.util.io
Class DCTOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--org.freehep.util.io.DCTOutputStream
- All Implemented Interfaces:
- FinishableOutputStream, ImageOutput
- public class DCTOutputStream
- extends FilterOutputStream
- implements ImageOutput, FinishableOutputStream
Writes out images in JPEG format, but can only do Images
- Version:
- $Id: DCTOutputStream.java,v 1.5 2003/05/08 22:46:24 duns Exp $
- Author:
- Mark Donszelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCTOutputStream
public DCTOutputStream(OutputStream out)
write
public void write(int a)
throws IOException
- Overrides:
write
in class FilterOutputStream
IOException
finish
public void finish()
throws IOException
- Specified by:
finish
in interface FinishableOutputStream
IOException
close
public void close()
throws IOException
- Overrides:
close
in class FilterOutputStream
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.