public class SubImageInputStream extends ImageInputStreamImpl2
bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
SubImageInputStream(ImageInputStream in,
long offset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
long |
getFlushedPosition() |
long |
getStreamPosition() |
boolean |
isCached()
Default implementation returns false.
|
boolean |
isCachedFile() |
boolean |
isCachedMemory()
Default implementation returns false.
|
long |
length() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
readInt, readShortcheckClosed, close, finalize, flushBefore, getBitOffset, getByteOrder, 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, skipBytespublic SubImageInputStream(ImageInputStream in, long offset, long length) throws IOException
IOExceptionpublic int read()
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic long getStreamPosition()
throws IOException
getStreamPosition in interface ImageInputStreamgetStreamPosition in class ImageInputStreamImplIOExceptionpublic void seek(long pos)
throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionpublic void flush()
throws IOException
flush in interface ImageInputStreamflush in class ImageInputStreamImplIOExceptionpublic long getFlushedPosition()
getFlushedPosition in interface ImageInputStreamgetFlushedPosition in class ImageInputStreamImplpublic boolean isCached()
isCached in interface ImageInputStreamisCached in class ImageInputStreamImplpublic boolean isCachedMemory()
isCachedMemory in interface ImageInputStreamisCachedMemory in class ImageInputStreamImplpublic boolean isCachedFile()
isCachedFile in interface ImageInputStreamisCachedFile in class ImageInputStreamImplpublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplCopyright © 2014. All Rights Reserved.