| Modifier and Type | Field and Description |
|---|---|
| private final JBIG2Document | |
| private int | |
| private int | |
| private Bitmap | pageBitmap
The page bitmap that represents the page buffer |
| private final int | pageNumber
Note page number != segmentList index |
| private int | |
| private int | |
| private final Map | segments
This list contains all segments of this page, sorted by segment number in ascending order. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | add(SegmentHeader
- The segment to be added. segment)Adds a |
| protected void | |
| private void | clearSegmentData()
Resets the memory-critical segments to force on-demand-decoding and to avoid holding the segments' bitmap too long. |
| private ArrayList | |
| private void | composePageBitmap()
This method composes the segments' bitmaps to a page and stores the page as a |
| private int | |
| private void | |
| private void | |
| private void | |
| private boolean | fitsPage(PageInformation pageInformation, final Bitmap regionBitmap)
Check if we have only one region that forms the complete page. |
| protected Bitmap | Returns: pageBitmap - The result of decoding a pageThis method returns the decoded bitmap if present. |
| private CombinationOperator | Returns: the new combination operator- pi, CombinationOperator PageInformation object- The combination operator, specified by actual segment newOperator)This method checks and sets, which combination operator shall be used. |
| protected int | |
| protected SegmentHeader | |
| protected int | |
| protected int | |
| public SegmentHeader | getSegment(int
- Segment number of the segment to search. number)This method searches for a segment specified by its number. |
| protected int | |
| public String |
| document | back to summary |
|---|---|
| private final JBIG2Document document | |
| finalHeight | back to summary |
|---|---|
| private int finalHeight | |
| finalWidth | back to summary |
|---|---|
| private int finalWidth | |
| pageBitmap | back to summary |
|---|---|
| private Bitmap pageBitmap The page bitmap that represents the page buffer | |
| pageNumber | back to summary |
|---|---|
| private final int pageNumber Note page number != segmentList index | |
| resolutionX | back to summary |
|---|---|
| private int resolutionX | |
| resolutionY | back to summary |
|---|---|
| private int resolutionY | |
| segments | back to summary |
|---|---|
| private final Map<Integer, SegmentHeader> segments This list contains all segments of this page, sorted by segment number in ascending order. | |
| JBIG2Page | back to summary |
|---|---|
| protected JBIG2Page(JBIG2Document document, int pageNumber) | |
| add | back to summary |
|---|---|
| protected void add(SegmentHeader segment) Adds a
| |
| clearPageData | back to summary |
|---|---|
| protected void clearPageData() Reset memory-critical parts of page. | |
| clearSegmentData | back to summary |
|---|---|
| private void clearSegmentData() Resets the memory-critical segments to force on-demand-decoding and to avoid holding the segments' bitmap too long. | |
| collectPageStripes | back to summary |
|---|---|
| private ArrayList | |
| composePageBitmap | back to summary |
|---|---|
| private void composePageBitmap() throws IOException, JBIG2Exception This method composes the segments' bitmaps to a page and stores the page as a | |
| countRegions | back to summary |
|---|---|
| private int countRegions() This method counts the regions segments. If there is only one region, the bitmap of this segment is equal to the page bitmap and blitting is not necessary.
| |
| createNormalPage | back to summary |
|---|---|
| private void createNormalPage(PageInformation pageInformation) throws IOException, IntegerMaxValueException, InvalidHeaderValueException | |
| createPage | back to summary |
|---|---|
| private void createPage(PageInformation pageInformation) throws IOException, IntegerMaxValueException, InvalidHeaderValueException | |
| createStripedPage | back to summary |
|---|---|
| private void createStripedPage(PageInformation pageInformation) throws IOException, IntegerMaxValueException, InvalidHeaderValueException | |
| fitsPage | back to summary |
|---|---|
| private boolean fitsPage(PageInformation pageInformation, final Bitmap regionBitmap) Check if we have only one region that forms the complete page. If the dimension equals the page's dimension set the region's bitmap as the page's bitmap. Otherwise we have to blit the smaller region's bitmap into the page's bitmap (see Issue 6). | |
| getBitmap | back to summary |
|---|---|
| protected Bitmap getBitmap() throws JBIG2Exception, IOException This method returns the decoded bitmap if present. Otherwise the page bitmap will be composed before returning the result.
| |
| getCombinationOperator | back to summary |
|---|---|
| private CombinationOperator getCombinationOperator(PageInformation pi, CombinationOperator newOperator) This method checks and sets, which combination operator shall be used.
| |
| getHeight | back to summary |
|---|---|
| protected int getHeight() throws IOException, JBIG2Exception Returns the final height of the page.
| |
| getPageInformationSegment | back to summary |
|---|---|
| protected SegmentHeader getPageInformationSegment() Returns the associated page information segment.
| |
| getResolutionX | back to summary |
|---|---|
| protected int getResolutionX() | |
| getResolutionY | back to summary |
|---|---|
| protected int getResolutionY() | |
| getSegment | back to summary |
|---|---|
| public SegmentHeader getSegment(int number) This method searches for a segment specified by its number.
| |
| getWidth | back to summary |
|---|---|
| protected int getWidth() | |
| 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- | |