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, skipBytes
private 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
IOException
public SegmentedImageInputStream(ImageInputStream stream, long pos, int len, boolean autoExtend) throws IOException
IOException
public static SegmentedImageInputStream ofFrame(ImageInputStream iis, Fragments fragments, int index, int frames) throws IOException
IOException
public long getLastSegmentEnd()
private int offsetOf(int segment)
public void seek(long pos) throws IOException
seek
in interface ImageInputStream
seek
in class ImageInputStreamImpl
IOException
public int read() throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
private boolean prepareRead() throws IOException
IOException
private void addSegment(long pos, int len)
public int read(byte[] b, int off, int len) throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
Copyright © 2017 dcm4che.org. All rights reserved.