Package org.apache.pdfbox.jbig2.segments
Class EndOfStripe
- java.lang.Object
-
- org.apache.pdfbox.jbig2.segments.EndOfStripe
-
- All Implemented Interfaces:
SegmentData
public class EndOfStripe extends java.lang.Object implements SegmentData
This segment flags an end of stripe (see JBIG2 ISO standard, 7.4.9).
-
-
Field Summary
Fields Modifier and Type Field Description private intlineNumberprivate SubInputStreamsubInputStream
-
Constructor Summary
Constructors Constructor Description EndOfStripe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLineNumber()voidinit(SegmentHeader header, SubInputStream sis)Parse the stream and read information of header.private voidparseHeader()
-
-
-
Field Detail
-
subInputStream
private SubInputStream subInputStream
-
lineNumber
private int lineNumber
-
-
Method Detail
-
parseHeader
private void parseHeader() throws java.io.IOException, IntegerMaxValueException, InvalidHeaderValueException- Throws:
java.io.IOExceptionIntegerMaxValueExceptionInvalidHeaderValueException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws IntegerMaxValueException, InvalidHeaderValueException, java.io.IOException
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:
IntegerMaxValueException- if the maximum value limit of an integer is exceededInvalidHeaderValueException- if the segment header value is invalidjava.io.IOException- if an underlying IO operation fails
-
getLineNumber
public int getLineNumber()
-
-