Class SegmentHeader
java.lang.Object
org.apache.pdfbox.jbig2.SegmentHeader
The basic class for all JBIG2 segments.
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentHeader(org.apache.pdfbox.jbig2.JBIG2Document document, SubInputStream sis, long offset, int organisationType) -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and returns a newSubInputStreamthat provides the data part of this segment.intshortRetrieves the segments' data part.longlonglongintintvoidsetSegmentDataStartOffset(long segmentDataStartOffset) toString()
-
Constructor Details
-
SegmentHeader
public SegmentHeader(org.apache.pdfbox.jbig2.JBIG2Document document, SubInputStream sis, long offset, int organisationType) throws IOException - Throws:
IOException
-
-
Method Details
-
getSegmentNr
public int getSegmentNr() -
getSegmentType
public int getSegmentType() -
getSegmentHeaderLength
public long getSegmentHeaderLength() -
getSegmentDataLength
public long getSegmentDataLength() -
getSegmentDataStartOffset
public long getSegmentDataStartOffset() -
setSegmentDataStartOffset
public void setSegmentDataStartOffset(long segmentDataStartOffset) -
getRtSegments
-
getPageAssociation
public int getPageAssociation() -
getRetainFlag
public short getRetainFlag() -
getDataInputStream
Creates and returns a newSubInputStreamthat provides the data part of this segment. It is a clipped view of the source input stream.- Returns:
- The
SubInputStreamthat represents the data part of the segment.
-
getSegmentData
Retrieves the segments' data part.- Returns:
- Retrieved
SegmentDatainstance.
-
cleanSegmentData
public void cleanSegmentData() -
toString
-