FreeHEP API
Version v1.2

org.freehep.util.io
Class DCTInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.freehep.util.io.DCTInputStream

public class DCTInputStream
extends InputStream

Reads images from a JPEG Stream, but only images. IMPORTANT: inherits from InputStream rather than FilterInputStream so that the correct read(byte[], int, int) method is used.

Version:
$Id: DCTInputStream.java,v 1.5 2003/05/07 14:30:02 duns Exp $
Author:
Mark Donszelmann

Constructor Summary
DCTInputStream(InputStream input)
           
 
Method Summary
 int read()
           
 Image readImage()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCTInputStream

public DCTInputStream(InputStream input)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
IOException

readImage

public Image readImage()
                throws IOException
IOException

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.