public class SegmentedImageStream extends ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
SegmentedImageStream(byte[] data) |
SegmentedImageStream(ImageInputStream stream,
Fragments pixeldataFragments,
int frameIndex) |
SegmentedImageStream(ImageInputStream iis,
long streamPosition,
int length,
boolean singleFrame) |
| Modifier and Type | Method and Description |
|---|---|
ImageDescriptor |
getImageDescriptor() |
long |
getLastSegmentEnd() |
long |
getOffsetPostPixelData() |
long |
length() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
void |
setImageDescriptor(ImageDescriptor imageDescriptor) |
long |
transferTo(OutputStream out)
Reads all bytes from this input stream and writes the bytes to the given output stream.
|
checkClosed, close, finalize, 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 SegmentedImageStream(ImageInputStream stream, Fragments pixeldataFragments, int frameIndex) throws IOException
IOExceptionpublic SegmentedImageStream(ImageInputStream iis, long streamPosition, int length, boolean singleFrame) throws IOException
IOExceptionpublic SegmentedImageStream(byte[] data)
throws IOException
IOExceptionpublic ImageDescriptor getImageDescriptor()
public void setImageDescriptor(ImageDescriptor imageDescriptor)
public void seek(long pos)
throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionpublic 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 getLastSegmentEnd()
public long getOffsetPostPixelData()
throws IOException
IOExceptionpublic long transferTo(OutputStream out) throws IOException
out - the output stream, non-nullIOException - if an I/O error occurs when reading or writingpublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplCopyright © 2020. All rights reserved.