Package gov.nih.mipav.model.file
Class FileSVS.ModModREADInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- gov.nih.mipav.model.file.FileSVS.BitInputStream
-
- gov.nih.mipav.model.file.FileSVS.ModHuffmanInputStream
-
- gov.nih.mipav.model.file.FileSVS.ModModREADInputStream
-
- All Implemented Interfaces:
FileSVS.ModHuffmanTable,FileSVS.ModREADTable,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
FileSVS.ModREADInputStream
- Enclosing class:
- FileSVS
public class FileSVS.ModModREADInputStream extends FileSVS.ModHuffmanInputStream implements FileSVS.ModREADTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileSVS.ModHuffmanInputStream
FileSVS.ModHuffmanInputStream.ModHuffmanCodingException
-
-
Field Summary
Fields Modifier and Type Field Description private inta0private intb1private intclindexprivate intcodeprivate int[]codelineprivate intmaxb1private int[]reflineprivate intwidth-
Fields inherited from class gov.nih.mipav.model.file.FileSVS.ModHuffmanInputStream
state
-
Fields inherited from class gov.nih.mipav.model.file.FileSVS.BitInputStream
count, nextByteMoreSignificant
-
Fields inherited from interface gov.nih.mipav.model.file.FileSVS.ModHuffmanTable
BLACK, EOL, EOLCW, makeUpBlack, makeUpWhite, MAXCHUNK, termBlack, termWhite, WHITE
-
-
Constructor Summary
Constructors Constructor Description ModModREADInputStream(java.io.InputStream in, int width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetREADCode()protected voidinit(int width)protected voidinitNewLine()intread()protected intread1D()protected intread2D()voidreadEOL()private intreadHorizontalMode1()private intreadHorizontalMode2()private intreadPassMode()private intreadVerticalMode()private voidsetB1()-
Methods inherited from class gov.nih.mipav.model.file.FileSVS.ModHuffmanInputStream
checkEOL, findToken, getColour, getState, read, read, skipPadding, syncWithEOL
-
Methods inherited from class gov.nih.mipav.model.file.FileSVS.BitInputStream
availableBits, cbCount, clrBits, getBits, needBits, readBit, readBits, reset, setNextByteMoreSignificant
-
-
-
-
Method Detail
-
init
protected void init(int width) throws java.io.IOException- Throws:
java.io.IOException
-
initNewLine
protected void initNewLine() throws java.io.IOException- Throws:
java.io.IOException
-
readEOL
public void readEOL() throws java.io.IOException- Overrides:
readEOLin classFileSVS.ModHuffmanInputStream- Throws:
java.io.IOException
-
getREADCode
protected int getREADCode() throws java.io.IOException- Throws:
java.io.IOException
-
setB1
private void setB1()
-
readPassMode
private int readPassMode() throws java.io.IOException- Throws:
java.io.IOException
-
readHorizontalMode1
private int readHorizontalMode1() throws java.io.IOException- Throws:
java.io.IOException
-
readHorizontalMode2
private int readHorizontalMode2() throws java.io.IOException- Throws:
java.io.IOException
-
readVerticalMode
private int readVerticalMode() throws java.io.IOException- Throws:
java.io.IOException
-
read2D
protected int read2D() throws java.io.IOException- Throws:
java.io.IOException
-
read1D
protected int read1D() throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classFileSVS.ModHuffmanInputStream- Throws:
java.io.IOException
-
-