public class SubImageInputStream extends ImageInputStreamImpl2
Constructor and Description |
---|
SubImageInputStream(javax.imageio.stream.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, readShort
checkClosed, 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, skipBytes
public SubImageInputStream(javax.imageio.stream.ImageInputStream in, long offset, long length) throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in interface javax.imageio.stream.ImageInputStream
read
in class javax.imageio.stream.ImageInputStreamImpl
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in interface javax.imageio.stream.ImageInputStream
read
in class javax.imageio.stream.ImageInputStreamImpl
java.io.IOException
public long getStreamPosition() throws java.io.IOException
getStreamPosition
in interface javax.imageio.stream.ImageInputStream
getStreamPosition
in class javax.imageio.stream.ImageInputStreamImpl
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in interface javax.imageio.stream.ImageInputStream
seek
in class javax.imageio.stream.ImageInputStreamImpl
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface javax.imageio.stream.ImageInputStream
flush
in class javax.imageio.stream.ImageInputStreamImpl
java.io.IOException
public long getFlushedPosition()
getFlushedPosition
in interface javax.imageio.stream.ImageInputStream
getFlushedPosition
in class javax.imageio.stream.ImageInputStreamImpl
public boolean isCached()
isCached
in interface javax.imageio.stream.ImageInputStream
isCached
in class javax.imageio.stream.ImageInputStreamImpl
public boolean isCachedMemory()
isCachedMemory
in interface javax.imageio.stream.ImageInputStream
isCachedMemory
in class javax.imageio.stream.ImageInputStreamImpl
public boolean isCachedFile()
isCachedFile
in interface javax.imageio.stream.ImageInputStream
isCachedFile
in class javax.imageio.stream.ImageInputStreamImpl
public long length()
length
in interface javax.imageio.stream.ImageInputStream
length
in class javax.imageio.stream.ImageInputStreamImpl