public final class SubImageInputStream
extends javax.imageio.stream.ImageInputStreamImpl
ImageInputStream to limit the number of bytes that can be read.| Constructor and Description |
|---|
SubImageInputStream(javax.imageio.stream.ImageInputStream pStream,
long pLength)
Creates a
ImageInputStream, reading up to a maximum number of bytes from the underlying stream. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
long |
length() |
int |
read() |
int |
read(byte[] pBytes,
int pOffset,
int pLength) |
void |
seek(long pPosition) |
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, skipBytespublic SubImageInputStream(javax.imageio.stream.ImageInputStream pStream,
long pLength)
throws java.io.IOException
ImageInputStream, reading up to a maximum number of bytes from the underlying stream.pStream - the underlying streampLength - the maximum length to read from the stream.
Note that pStream may contain less than this maximum number of bytes.java.io.IOException - if pStream's position can't be determined.java.lang.IllegalArgumentException - if pStream == null or pLength < 0public int read()
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic int read(byte[] pBytes,
int pOffset,
int pLength)
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic long length()
length in interface javax.imageio.stream.ImageInputStreamlength in class javax.imageio.stream.ImageInputStreamImplpublic void seek(long pPosition)
throws java.io.IOException
seek in interface javax.imageio.stream.ImageInputStreamseek in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class javax.imageio.stream.ImageInputStreamImpljava.lang.ThrowableCopyright © 2021. All Rights Reserved.