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 int
a0
private int
b1
private int
clindex
private int
code
private int[]
codeline
private int
maxb1
private int[]
refline
private int
width
-
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 int
getREADCode()
protected void
init(int width)
protected void
initNewLine()
int
read()
protected int
read1D()
protected int
read2D()
void
readEOL()
private int
readHorizontalMode1()
private int
readHorizontalMode2()
private int
readPassMode()
private int
readVerticalMode()
private void
setB1()
-
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:
readEOL
in 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:
read
in classFileSVS.ModHuffmanInputStream
- Throws:
java.io.IOException
-
-