Package org.apache.pdfbox.jbig2.segments
Class EndOfStripe
java.lang.Object
org.apache.pdfbox.jbig2.segments.EndOfStripe
- All Implemented Interfaces:
SegmentData
This segment flags an end of stripe (see JBIG2 ISO standard, 7.4.9).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
init
(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.private void
-
Field Details
-
subInputStream
-
lineNumber
private int lineNumber
-
-
Constructor Details
-
EndOfStripe
public EndOfStripe()
-
-
Method Details
-
parseHeader
private void parseHeader() throws IOException, IntegerMaxValueException, InvalidHeaderValueException -
init
public void init(SegmentHeader header, SubInputStream sis) throws IntegerMaxValueException, InvalidHeaderValueException, IOException 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:
IntegerMaxValueException
- if the maximum value limit of an integer is exceededInvalidHeaderValueException
- if the segment header value is invalidIOException
- if an underlying IO operation fails
-
getLineNumber
public int getLineNumber()
-