public class SegmentedImageInputStream extends ImageInputStreamImpl
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoExtend |
private int |
curSegment |
private long |
curSegmentEnd |
private byte[] |
header |
private int[] |
segmentLengths |
private long[] |
segmentPositionsList |
private ImageInputStream |
stream |
bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
SegmentedImageInputStream(ImageInputStream stream,
long[] segmentPositionsList,
int[] segmentLengths) |
SegmentedImageInputStream(ImageInputStream stream,
long pos,
int len,
boolean autoExtend) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addSegment(long pos,
int len) |
long |
getLastSegmentEnd() |
static SegmentedImageInputStream |
ofFrame(ImageInputStream iis,
Fragments fragments,
int index,
int frames) |
private int |
offsetOf(int segment) |
private boolean |
prepareRead() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, 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, skipBytesprivate final ImageInputStream stream
private final boolean autoExtend
private long[] segmentPositionsList
private int[] segmentLengths
private int curSegment
private long curSegmentEnd
private byte[] header
public SegmentedImageInputStream(ImageInputStream stream, long[] segmentPositionsList, int[] segmentLengths) throws IOException
IOExceptionpublic SegmentedImageInputStream(ImageInputStream stream, long pos, int len, boolean autoExtend) throws IOException
IOExceptionpublic static SegmentedImageInputStream ofFrame(ImageInputStream iis, Fragments fragments, int index, int frames) throws IOException
IOExceptionpublic long getLastSegmentEnd()
private int offsetOf(int segment)
public void seek(long pos) throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionpublic int read() throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionprivate boolean prepareRead() throws IOException
IOExceptionprivate void addSegment(long pos, int len)
public int read(byte[] b, int off, int len) throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionCopyright © 2017 dcm4che.org. All rights reserved.