Package org.apache.pdfbox.jbig2.segments
Class Table
- java.lang.Object
-
- org.apache.pdfbox.jbig2.segments.Table
-
- All Implemented Interfaces:
SegmentData
public class Table extends java.lang.Object implements SegmentData
This class represents a "Table" segment. It handles custom tables, see Annex B.
-
-
Field Summary
Fields Modifier and Type Field Description private int
htHigh
Code table highest value, B.2.3, page 87private int
htLow
Code table lowest value, B.2.2, page 87private int
htOutOfBand
Code table flags, B.2.1, page 87private int
htPS
private int
htRS
private SubInputStream
subInputStream
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHtHigh()
int
getHtLow()
int
getHtOOB()
int
getHtPS()
int
getHtRS()
SubInputStream
getSubInputStream()
void
init(SegmentHeader header, SubInputStream sis)
Parse the stream and read information of header.private void
parseHeader()
-
-
-
Field Detail
-
subInputStream
private SubInputStream subInputStream
-
htOutOfBand
private int htOutOfBand
Code table flags, B.2.1, page 87
-
htPS
private int htPS
-
htRS
private int htRS
-
htLow
private int htLow
Code table lowest value, B.2.2, page 87
-
htHigh
private int htHigh
Code table highest value, B.2.3, page 87
-
-
Method Detail
-
parseHeader
private void parseHeader() throws java.io.IOException, InvalidHeaderValueException, IntegerMaxValueException
- Throws:
java.io.IOException
InvalidHeaderValueException
IntegerMaxValueException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, java.io.IOException, IntegerMaxValueException
Description copied from interface:SegmentData
Parse the stream and read information of header.- Specified by:
init
in interfaceSegmentData
- Parameters:
header
- - The segments' header (to make referred-to segments available in data part).sis
- - WrappedImageInputStream
intoSubInputStream
.- Throws:
InvalidHeaderValueException
- if the segment header value is invalidjava.io.IOException
- if an underlying IO operation failsIntegerMaxValueException
- if the maximum value limit of an integer is exceeded
-
getHtOOB
public int getHtOOB()
-
getHtPS
public int getHtPS()
-
getHtRS
public int getHtRS()
-
getHtLow
public int getHtLow()
-
getHtHigh
public int getHtHigh()
-
getSubInputStream
public SubInputStream getSubInputStream()
-
-