Top Description Fields Constructors Methods
org.apache.pdfbox.jbig2.segments

public Class Table

extends Object
implements SegmentData
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.jbig2.SegmentData
Imports
java.io.IOException, org.apache.pdfbox.jbig2.SegmentData, .SegmentHeader, org.apache.pdfbox.jbig2.err.IntegerMaxValueException, .InvalidHeaderValueException, org.apache.pdfbox.jbig2.io.SubInputStream

This class represents a "Table" segment. It handles custom tables, see Annex B.

Field Summary

Modifier and TypeField and Description
private int
htHigh

Code table highest value, B.2.3, page 87

private int
htLow

Code table lowest value, B.2.2, page 87

private int
htOutOfBand

Code table flags, B.2.1, page 87

private int
private int
private SubInputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int
public int
public int
public SubInputStream
public void
init(SegmentHeader
- The segments' header (to make referred-to segments available in data part).
header
,
SubInputStream
- Wrapped ImageInputStream into SubInputStream.
sis
)

Implements org.apache.pdfbox.jbig2.SegmentData.init.

Parse the stream and read information of header.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

htHighback to summary
private int htHigh

Code table highest value, B.2.3, page 87

htLowback to summary
private int htLow

Code table lowest value, B.2.2, page 87

htOutOfBandback to summary
private int htOutOfBand

Code table flags, B.2.1, page 87

htPSback to summary
private int htPS
htRSback to summary
private int htRS
subInputStreamback to summary
private SubInputStream subInputStream

Constructor Detail

Tableback to summary
public Table()

Method Detail

getHtHighback to summary
public int getHtHigh()
getHtLowback to summary
public int getHtLow()
getHtOOBback to summary
public int getHtOOB()
getHtPSback to summary
public int getHtPS()
getHtRSback to summary
public int getHtRS()
getSubInputStreamback to summary
public SubInputStream getSubInputStream()
initback to summary
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException, IntegerMaxValueException

Implements org.apache.pdfbox.jbig2.SegmentData.init.

Doc from org.apache.pdfbox.jbig2.SegmentData.init.

Parse the stream and read information of header.

Parameters
header:SegmentHeader

- The segments' header (to make referred-to segments available in data part).

sis:SubInputStream

- Wrapped ImageInputStream into SubInputStream.

Exceptions
InvalidHeaderValueException:
if the segment header value is invalid
IOException:
if an underlying IO operation fails
IntegerMaxValueException:
if the maximum value limit of an integer is exceeded
parseHeaderback to summary
private void parseHeader() throws IOException, InvalidHeaderValueException, IntegerMaxValueException