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 int
lineNumber
private SubInputStream
subInputStream
-
Constructor Summary
Constructors Constructor Description EndOfStripe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLineNumber()
void
init(SegmentHeader header, SubInputStream sis)
Parse the stream and read information of header.private void
parseHeader()
-
-
-
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.IOException
IntegerMaxValueException
InvalidHeaderValueException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws IntegerMaxValueException, InvalidHeaderValueException, java.io.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 invalidjava.io.IOException
- if an underlying IO operation fails
-
getLineNumber
public int getLineNumber()
-
-