org.exoplatform.imageio.plugins.common
Class SubImageInputStream

java.lang.Object
  extended by javax.imageio.stream.ImageInputStreamImpl
      extended by org.exoplatform.imageio.plugins.common.SubImageInputStream
All Implemented Interfaces:
DataInput, ImageInputStream

public final class SubImageInputStream
extends ImageInputStreamImpl

version: openjdk-7-ea-src-b35-11_sep_2008


Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
SubImageInputStream(ImageInputStream stream, int length)
           
 
Method Summary
protected  void finalize()
           
 long length()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, 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

SubImageInputStream

public SubImageInputStream(ImageInputStream stream,
                           int length)
                    throws IOException
Throws:
IOException
Method Detail

read

public int read()
         throws IOException
Specified by:
read in interface ImageInputStream
Specified by:
read in class ImageInputStreamImpl
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Specified by:
read in interface ImageInputStream
Specified by:
read in class ImageInputStreamImpl
Throws:
IOException

length

public long length()
Specified by:
length in interface ImageInputStream
Overrides:
length in class ImageInputStreamImpl

seek

public void seek(long pos)
          throws IOException
Specified by:
seek in interface ImageInputStream
Overrides:
seek in class ImageInputStreamImpl
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class ImageInputStreamImpl
Throws:
Throwable


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.