Package gov.nih.mipav.model.file
Class FileSVS.ModHuffmanInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.nih.mipav.model.file.FileSVS.BitInputStream
gov.nih.mipav.model.file.FileSVS.ModHuffmanInputStream
- All Implemented Interfaces:
FileSVS.ModHuffmanTable,Closeable,AutoCloseable
- Direct Known Subclasses:
FileSVS.ModModREADInputStream
- Enclosing class:
FileSVS
public class FileSVS.ModHuffmanInputStream
extends FileSVS.BitInputStream
implements FileSVS.ModHuffmanTable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.file.FileSVS.BitInputStream
count, nextByteMoreSignificantFields inherited from class java.io.FilterInputStream
inFields inherited from interface gov.nih.mipav.model.file.FileSVS.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.FileSVS.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 classFileSVS.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
-