Package gov.nih.mipav.model.file
Class FileTiff.ModModREADInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- gov.nih.mipav.model.file.FileTiff.BitInputStream
-
- gov.nih.mipav.model.file.FileTiff.ModHuffmanInputStream
-
- gov.nih.mipav.model.file.FileTiff.ModModREADInputStream
-
- All Implemented Interfaces:
FileTiff.ModHuffmanTable
,FileTiff.ModREADTable
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
FileTiff.ModREADInputStream
- Enclosing class:
- FileTiff
public class FileTiff.ModModREADInputStream extends FileTiff.ModHuffmanInputStream implements FileTiff.ModREADTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileTiff.ModHuffmanInputStream
FileTiff.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.FileTiff.ModHuffmanInputStream
state
-
Fields inherited from class gov.nih.mipav.model.file.FileTiff.BitInputStream
count, nextByteMoreSignificant
-
Fields inherited from interface gov.nih.mipav.model.file.FileTiff.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.FileTiff.ModHuffmanInputStream
checkEOL, findToken, getColour, getState, read, read, skipPadding, syncWithEOL
-
Methods inherited from class gov.nih.mipav.model.file.FileTiff.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 classFileTiff.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 classFileTiff.ModHuffmanInputStream
- Throws:
java.io.IOException
-
-