Class Table
java.lang.Object
org.apache.pdfbox.jbig2.segments.Table
- All Implemented Interfaces:
SegmentData
This class represents a "Table" segment. It handles custom tables, see Annex B.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intCode table highest value, B.2.3, page 87private intCode table lowest value, B.2.2, page 87private intCode table flags, B.2.1, page 87private intprivate intprivate SubInputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetHtLow()intgetHtOOB()intgetHtPS()intgetHtRS()voidinit(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.private void
-
Field Details
-
subInputStream
-
htOutOfBand
private int htOutOfBandCode table flags, B.2.1, page 87 -
htPS
private int htPS -
htRS
private int htRS -
htLow
private int htLowCode table lowest value, B.2.2, page 87 -
htHigh
private int htHighCode table highest value, B.2.3, page 87
-
-
Constructor Details
-
Table
public Table()
-
-
Method Details
-
parseHeader
private void parseHeader() throws IOException, InvalidHeaderValueException, IntegerMaxValueException -
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException, IntegerMaxValueException Description copied from interface:SegmentDataParse the stream and read information of header.- Specified by:
initin interfaceSegmentData- Parameters:
header- - The segments' header (to make referred-to segments available in data part).sis- - WrappedImageInputStreamintoSubInputStream.- Throws:
InvalidHeaderValueException- if the segment header value is invalidIOException- 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
-