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 inthtHighCode table highest value, B.2.3, page 87private inthtLowCode table lowest value, B.2.2, page 87private inthtOutOfBandCode table flags, B.2.1, page 87private inthtPSprivate inthtRSprivate SubInputStreamsubInputStream
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHtHigh()intgetHtLow()intgetHtOOB()intgetHtPS()intgetHtRS()SubInputStreamgetSubInputStream()voidinit(SegmentHeader header, SubInputStream sis)Parse the stream and read information of header.private voidparseHeader()
-
-
-
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.IOExceptionInvalidHeaderValueExceptionIntegerMaxValueException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, java.io.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 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()
-
-