Copyright 2012-04-26 Werner Randelshofer

org.monte.media.io
Class UncachedImageInputStream

java.lang.Object
  extended by javax.imageio.stream.ImageInputStreamImpl
      extended by org.monte.media.io.ImageInputStreamImpl2
          extended by org.monte.media.io.UncachedImageInputStream
All Implemented Interfaces:
java.io.DataInput, javax.imageio.stream.ImageInputStream

public class UncachedImageInputStream
extends ImageInputStreamImpl2

An implementation of ImageInputStream that gets its input from a regular InputStream. No caching is used and thus backward seeking is not supported.

Version:
$Id: UncachedImageInputStream.java 134 2011-12-02 16:23:00Z werner $
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
UncachedImageInputStream(java.io.InputStream in)
           
UncachedImageInputStream(java.io.InputStream in, java.nio.ByteOrder bo)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 
Methods inherited from class org.monte.media.io.ImageInputStreamImpl2
readInt, readShort
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readLine, readLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, setByteOrder, skipBytes, skipBytes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncachedImageInputStream

public UncachedImageInputStream(java.io.InputStream in)

UncachedImageInputStream

public UncachedImageInputStream(java.io.InputStream in,
                                java.nio.ByteOrder bo)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in interface javax.imageio.stream.ImageInputStream
Specified by:
read in class javax.imageio.stream.ImageInputStreamImpl
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in interface javax.imageio.stream.ImageInputStream
Specified by:
read in class javax.imageio.stream.ImageInputStreamImpl
Throws:
java.io.IOException

seek

public void seek(long pos)
          throws java.io.IOException
Specified by:
seek in interface javax.imageio.stream.ImageInputStream
Overrides:
seek in class javax.imageio.stream.ImageInputStreamImpl
Throws:
java.io.IOException

Copyright 2012-04-26 Werner Randelshofer