| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private byte | |
| private byte | |
| private SegmentHeader[] | |
| private static final Map | |
| private Reference | |
| private long | |
| private long | |
| private long | |
| private int | |
| private int | |
| private final SubInputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public SubInputStream | Returns: TheSubInputStream that represents the data part of the segment.Creates and returns a new |
| public int | |
| public short | |
| public SegmentHeader[] | |
| public SegmentData | |
| public long | |
| public long | |
| public long | |
| public int | |
| public int | |
| private void | parse(JBIG2Document document, ImageInputStream subInputStream, long
- The offset where the segment header starts offset, int organisationType)
|
| private int | Returns: The amount of referred-to segments.7.2.4 Amount of referred-to segments |
| private void | readDataStartOffset(ImageInputStream subInputStream, int organisationType)
Sets the offset only if organization type is SEQUENTIAL. |
| private int[] | Returns: An array with the segment number of all referred-to segments.- Wrapped source data input stream. subInputStream, int - The amount of referred-to segments. countOfRTS)7.2.5 Referred-to segments numbers Gathers all segment numbers of referred-to segments. |
| private void | readSegmentDataLength(ImageInputStream subInputStream)
7.2.7 Segment data length Contains the length of the data part in bytes. |
| private void | |
| private void | |
| private void | |
| private void | readSegmentPageAssociation(JBIG2Document document, ImageInputStream subInputStream, int countOfRTS, int[] rtsNumbers)
7.2.6 Segment page association |
| public void | |
| public String |
| pageAssociation | back to summary |
|---|---|
| private int pageAssociation | |
| pageAssociationFieldSize | back to summary |
|---|---|
| private byte pageAssociationFieldSize | |
| retainFlag | back to summary |
|---|---|
| private byte retainFlag | |
| rtSegments | back to summary |
|---|---|
| private SegmentHeader[] rtSegments | |
| SEGMENT_TYPE_MAP | back to summary |
|---|---|
| private static final Map<Integer, Class<? extends SegmentData>> SEGMENT_TYPE_MAP | |
| segmentData | back to summary |
|---|---|
| private Reference<SegmentData> segmentData | |
| segmentDataLength | back to summary |
|---|---|
| private long segmentDataLength | |
| segmentDataStartOffset | back to summary |
|---|---|
| private long segmentDataStartOffset | |
| segmentHeaderLength | back to summary |
|---|---|
| private long segmentHeaderLength | |
| segmentNr | back to summary |
|---|---|
| private int segmentNr | |
| segmentType | back to summary |
|---|---|
| private int segmentType | |
| subInputStream | back to summary |
|---|---|
| private final SubInputStream subInputStream | |
| SegmentHeader | back to summary |
|---|---|
| public SegmentHeader(JBIG2Document document, SubInputStream sis, long offset, int organisationType) throws IOException | |
| cleanSegmentData | back to summary |
|---|---|
| public void cleanSegmentData() | |
| getDataInputStream | back to summary |
|---|---|
| public SubInputStream getDataInputStream() Creates and returns a new
| |
| getPageAssociation | back to summary |
|---|---|
| public int getPageAssociation() | |
| getRetainFlag | back to summary |
|---|---|
| public short getRetainFlag() | |
| getRtSegments | back to summary |
|---|---|
| public SegmentHeader[] getRtSegments() | |
| getSegmentData | back to summary |
|---|---|
| public SegmentData getSegmentData() Retrieves the segments' data part.
| |
| getSegmentDataLength | back to summary |
|---|---|
| public long getSegmentDataLength() | |
| getSegmentDataStartOffset | back to summary |
|---|---|
| public long getSegmentDataStartOffset() | |
| getSegmentHeaderLength | back to summary |
|---|---|
| public long getSegmentHeaderLength() | |
| getSegmentNr | back to summary |
|---|---|
| public int getSegmentNr() | |
| getSegmentType | back to summary |
|---|---|
| public int getSegmentType() | |
| parse | back to summary |
|---|---|
private void parse(JBIG2Document document, ImageInputStream subInputStream, long offset, int organisationType) throws IOException
| |
| readAmountOfReferredToSegments | back to summary |
|---|---|
| private int readAmountOfReferredToSegments(ImageInputStream subInputStream) throws IOException 7.2.4 Amount of referred-to segments
| |
| readDataStartOffset | back to summary |
|---|---|
| private void readDataStartOffset(ImageInputStream subInputStream, int organisationType) throws IOException Sets the offset only if organization type is SEQUENTIAL. If random, data starts after segment headers and can be determined when all segment headers are parsed and allocated. | |
| readReferredToSegmentsNumbers | back to summary |
|---|---|
| private int[] readReferredToSegmentsNumbers(ImageInputStream subInputStream, int countOfRTS) throws IOException 7.2.5 Referred-to segments numbers
Gathers all segment numbers of referred-to segments. The segments itself are stored in the
| |
| readSegmentDataLength | back to summary |
|---|---|
| private void readSegmentDataLength(ImageInputStream subInputStream) throws IOException 7.2.7 Segment data length Contains the length of the data part in bytes. | |
| readSegmentHeaderFlag | back to summary |
|---|---|
| private void readSegmentHeaderFlag(ImageInputStream subInputStream) throws IOException 7.2.3 Segment header flags | |
| readSegmentHeaderLength | back to summary |
|---|---|
| private void readSegmentHeaderLength(ImageInputStream subInputStream, long offset) throws IOException | |
| readSegmentNumber | back to summary |
|---|---|
| private void readSegmentNumber(ImageInputStream subInputStream) throws IOException 7.2.2 Segment number | |
| readSegmentPageAssociation | back to summary |
|---|---|
| private void readSegmentPageAssociation(JBIG2Document document, ImageInputStream subInputStream, int countOfRTS, int[] rtsNumbers) throws IOException 7.2.6 Segment page association | |
| setSegmentDataStartOffset | back to summary |
|---|---|
| public void setSegmentDataStartOffset(long segmentDataStartOffset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |