public class PatchJPEGLSImageInputStream extends ImageInputStreamImpl
Modifier and Type | Field and Description |
---|---|
private ImageInputStream |
iis |
private static Logger |
LOG |
private byte[] |
patch |
private long |
patchPos |
bitOffset, byteOrder, flushedPos, streamPos
Constructor and Description |
---|
PatchJPEGLSImageInputStream(ImageInputStream iis,
PatchJPEGLS patchJPEGLS) |
Modifier and Type | Method and Description |
---|---|
private long |
adjustStreamPosition(long pos) |
void |
close() |
private byte[] |
firstBytesOf(ImageInputStream iis) |
void |
flushBefore(long pos) |
boolean |
isCached() |
boolean |
isCachedFile() |
boolean |
isCachedMemory() |
long |
length() |
void |
mark() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private int |
readAvailable(byte[] b) |
void |
reset() |
void |
seek(long pos) |
checkClosed, finalize, flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, 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, setBitOffset, setByteOrder, skipBytes, skipBytes
private final ImageInputStream iis
private long patchPos
private byte[] patch
public PatchJPEGLSImageInputStream(ImageInputStream iis, PatchJPEGLS patchJPEGLS) throws IOException
IOException
private byte[] firstBytesOf(ImageInputStream iis) throws IOException
IOException
private int readAvailable(byte[] b) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
close
in class ImageInputStreamImpl
IOException
public void flushBefore(long pos) throws IOException
flushBefore
in interface ImageInputStream
flushBefore
in class ImageInputStreamImpl
IOException
private long adjustStreamPosition(long pos)
public boolean isCached()
isCached
in interface ImageInputStream
isCached
in class ImageInputStreamImpl
public boolean isCachedFile()
isCachedFile
in interface ImageInputStream
isCachedFile
in class ImageInputStreamImpl
public boolean isCachedMemory()
isCachedMemory
in interface ImageInputStream
isCachedMemory
in class ImageInputStreamImpl
public long length()
length
in interface ImageInputStream
length
in class ImageInputStreamImpl
public int read() throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public void mark()
mark
in interface ImageInputStream
mark
in class ImageInputStreamImpl
public void reset() throws IOException
reset
in interface ImageInputStream
reset
in class ImageInputStreamImpl
IOException
public void seek(long pos) throws IOException
seek
in interface ImageInputStream
seek
in class ImageInputStreamImpl
IOException
Copyright © 2017 dcm4che.org. All rights reserved.