public class SegmentHeader extends Object
| Constructor and Description |
|---|
SegmentHeader(org.apache.pdfbox.jbig2.JBIG2Document document,
SubInputStream sis,
long offset,
int organisationType) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanSegmentData() |
SubInputStream |
getDataInputStream()
Creates and returns a new
SubInputStream that provides the data part of this segment. |
int |
getPageAssociation() |
short |
getRetainFlag() |
SegmentHeader[] |
getRtSegments() |
SegmentData |
getSegmentData()
Retrieves the segments' data part.
|
long |
getSegmentDataLength() |
long |
getSegmentDataStartOffset() |
long |
getSegmentHeaderLength() |
int |
getSegmentNr() |
int |
getSegmentType() |
void |
setSegmentDataStartOffset(long segmentDataStartOffset) |
String |
toString() |
public SegmentHeader(org.apache.pdfbox.jbig2.JBIG2Document document,
SubInputStream sis,
long offset,
int organisationType)
throws IOException
IOExceptionpublic int getSegmentNr()
public int getSegmentType()
public long getSegmentHeaderLength()
public long getSegmentDataLength()
public long getSegmentDataStartOffset()
public void setSegmentDataStartOffset(long segmentDataStartOffset)
public SegmentHeader[] getRtSegments()
public int getPageAssociation()
public short getRetainFlag()
public SubInputStream getDataInputStream()
SubInputStream that provides the data part of this segment. It is a clipped
view of the source input stream.SubInputStream that represents the data part of the segment.public SegmentData getSegmentData()
SegmentData instance.public void cleanSegmentData()
Copyright © 2018 The Apache Software Foundation. All rights reserved.