Package gov.nih.mipav.model.file
Class FileTiff.JPEGHuffmanInputStream
java.lang.Object
java.io.InputStream
gov.nih.mipav.model.file.FileTiff.JPEGHuffmanInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
FileTiff
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidgenerateCodeTable(int LASTK) private voidprivate voidgenerateSizeTable(int LASTK) private voidinitialize(InputStream tables) intread()intreadBits(int bitSize) private intreadTableData(InputStream tables) voidrestart()voidtoString()Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
BITS
protected int[] BITS -
HUFFVAL
protected int[] HUFFVAL -
HUFFSIZE
protected int[] HUFFSIZE -
HUFFCODE
protected int[] HUFFCODE -
VALPTR
protected int[] VALPTR -
MINCODE
protected int[] MINCODE -
MAXCODE
protected int[] MAXCODE -
in
-
code
private int code -
index
private int index
-
-
Constructor Details
-
JPEGHuffmanInputStream
public JPEGHuffmanInputStream(FileTiff.JPEGBitInputStream in, InputStream tables) throws IOException - Throws:
IOException
-
JPEGHuffmanInputStream
- Throws:
IOException
-
-
Method Details
-
setInputStream
- Throws:
IOException
-
initialize
- Throws:
IOException
-
readTableData
- Throws:
IOException
-
generateSizeTable
private void generateSizeTable(int LASTK) -
generateCodeTable
private void generateCodeTable(int LASTK) -
generateDecoderTable
private void generateDecoderTable() -
toString
-
readBits
- Throws:
IOException
-
restart
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-