Package com.pixelmed.dicom
Class CompressedFrameDecoder.ByteArrayInputStreamWithOffsetCounterAndOurMethods
java.lang.Object
java.io.InputStream
com.pixelmed.dicom.CompressedFrameDecoder.ByteArrayInputStreamWithOffsetCounterAndOurMethods
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
CompressedFrameDecoder
protected class CompressedFrameDecoder.ByteArrayInputStreamWithOffsetCounterAndOurMethods
extends InputStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
int
read()
int
read
(byte[] b, int off, int len) final long
final void
readUnsigned32LittleEndian
(long[] w, int offset, int len) long
skip
(long n) void
skipInsistently
(long length) Methods inherited from class java.io.InputStream
close, mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
buf
protected byte[] buf -
pos
protected int pos -
count
protected int count
-
-
Constructor Details
-
ByteArrayInputStreamWithOffsetCounterAndOurMethods
public ByteArrayInputStreamWithOffsetCounterAndOurMethods(byte[] buf)
-
-
Method Details
-
read
public int read()- Specified by:
read
in classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
readUnsigned32LittleEndian
public final long readUnsigned32LittleEndian() -
readUnsigned32LittleEndian
- Throws:
IOException
-
skipInsistently
- Throws:
IOException
-
getOffsetOfNextByteToReadFromStartOfFragment
public int getOffsetOfNextByteToReadFromStartOfFragment()
-