Package gov.nih.mipav.model.file
Class FileTiff.ModHuffmanInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.nih.mipav.model.file.FileTiff.BitInputStream
gov.nih.mipav.model.file.FileTiff.ModHuffmanInputStream
- All Implemented Interfaces:
FileTiff.ModHuffmanTable,Closeable,AutoCloseable
- Direct Known Subclasses:
FileTiff.ModModREADInputStream
- Enclosing class:
FileTiff
public class FileTiff.ModHuffmanInputStream
extends FileTiff.BitInputStream
implements FileTiff.ModHuffmanTable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.file.FileTiff.BitInputStream
count, nextByteMoreSignificantFields inherited from class java.io.FilterInputStream
inFields inherited from interface gov.nih.mipav.model.file.FileTiff.ModHuffmanTable
BLACK, EOL, EOLCW, makeUpBlack, makeUpWhite, MAXCHUNK, termBlack, termWhite, WHITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcheckEOL()protected intfindToken(int[][] table) intgetColour(int colwhite) intgetState()intread()intread(byte[] b) intread(byte[] b, int off, int len) private intread(int[][] makeUp, int maxmakeUp, int[][] term, int maxterm) voidreadEOL()voidskipPadding(int bits) voidMethods inherited from class gov.nih.mipav.model.file.FileTiff.BitInputStream
availableBits, cbCount, clrBits, getBits, needBits, readBit, readBits, reset, setNextByteMoreSignificantMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
state
protected int state
-
-
Constructor Details
-
ModHuffmanInputStream
-
-
Method Details
-
skipPadding
- Overrides:
skipPaddingin classFileTiff.BitInputStream- Throws:
IOException
-
syncWithEOL
- Throws:
IOException
-
readEOL
- Throws:
IOException
-
getState
public int getState() -
getColour
public int getColour(int colwhite) -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Throws:
IOException
-
findToken
protected int findToken(int[][] table) -
checkEOL
- Throws:
IOException
-