Top Description Methods
org.apache.pdfbox.jbig2

public Interface SegmentData

Known Direct Subinterfaces
org.apache.pdfbox.jbig2.Dictionary, org.apache.pdfbox.jbig2.Region
Known Direct Implementers
org.apache.pdfbox.jbig2.segments.EndOfStripe, org.apache.pdfbox.jbig2.segments.PageInformation, org.apache.pdfbox.jbig2.segments.Profiles, org.apache.pdfbox.jbig2.segments.RegionSegmentInformation, org.apache.pdfbox.jbig2.segments.Table
Imports
java.io.IOException, org.apache.pdfbox.jbig2.err.IntegerMaxValueException, .InvalidHeaderValueException, org.apache.pdfbox.jbig2.io.SubInputStream

Interface for all data parts of segments.

Method Summary

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

Parse the stream and read information of header.

Method Detail

initback to summary
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IntegerMaxValueException, IOException

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
IntegerMaxValueException:
if the maximum value limit of an integer is exceeded
IOException:
if an underlying IO operation fails