Class PageInformation

java.lang.Object
org.apache.pdfbox.jbig2.segments.PageInformation
All Implemented Interfaces:
SegmentData

public class PageInformation extends Object implements SegmentData
This class represents the segment type "Page information", 7.4.8 (page 73).
  • Field Details

    • subInputStream

      private SubInputStream subInputStream
    • bitmapWidth

      private int bitmapWidth
      Page bitmap width, four byte, 7.4.8.1
    • bitmapHeight

      private int bitmapHeight
      Page bitmap height, four byte, 7.4.8.2
    • resolutionX

      private int resolutionX
      Page X resolution, four byte, 7.4.8.3
    • resolutionY

      private int resolutionY
      Page Y resolution, four byte, 7.4.8.4
    • combinationOperatorOverrideAllowed

      private boolean combinationOperatorOverrideAllowed
      Page segment flags, one byte, 7.4.8.5
    • combinationOperator

      private CombinationOperator combinationOperator
    • requiresAuxiliaryBuffer

      private boolean requiresAuxiliaryBuffer
    • defaultPixelValue

      private short defaultPixelValue
    • mightContainRefinements

      private boolean mightContainRefinements
    • isLossless

      private boolean isLossless
    • isStriped

      private boolean isStriped
      Page striping information, two byte, 7.4.8.6
    • maxStripeSize

      private short maxStripeSize
  • Constructor Details

    • PageInformation

      public PageInformation()
  • Method Details

    • parseHeader

      private void parseHeader() throws IOException, InvalidHeaderValueException
      Throws:
      IOException
      InvalidHeaderValueException
    • readResolution

      private void readResolution() throws IOException
      Throws:
      IOException
    • readCombinationOperatorOverrideAllowed

      private void readCombinationOperatorOverrideAllowed() throws IOException
      Throws:
      IOException
    • readRequiresAuxiliaryBuffer

      private void readRequiresAuxiliaryBuffer() throws IOException
      Throws:
      IOException
    • readCombinationOperator

      private void readCombinationOperator() throws IOException
      Throws:
      IOException
    • readDefaultPixelvalue

      private void readDefaultPixelvalue() throws IOException
      Throws:
      IOException
    • readContainsRefinement

      private void readContainsRefinement() throws IOException
      Throws:
      IOException
    • readIsLossless

      private void readIsLossless() throws IOException
      Throws:
      IOException
    • readIsStriped

      private void readIsStriped() throws IOException
      Throws:
      IOException
    • readMaxStripeSize

      private void readMaxStripeSize() throws IOException
      Throws:
      IOException
    • readWidthAndHeight

      private void readWidthAndHeight() throws IOException
      Throws:
      IOException
    • init

      public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException
      Description copied from interface: SegmentData
      Parse the stream and read information of header.
      Specified by:
      init in interface SegmentData
      Parameters:
      header - - The segments' header (to make referred-to segments available in data part).
      sis - - Wrapped ImageInputStream into SubInputStream.
      Throws:
      InvalidHeaderValueException - if the segment header value is invalid
      IOException - if an underlying IO operation fails
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getResolutionX

      public int getResolutionX()
    • getResolutionY

      public int getResolutionY()
    • getDefaultPixelValue

      public short getDefaultPixelValue()
    • isCombinationOperatorOverrideAllowed

      public boolean isCombinationOperatorOverrideAllowed()
    • getCombinationOperator

      public CombinationOperator getCombinationOperator()
    • isStriped

      public boolean isStriped()
    • getMaxStripeSize

      public short getMaxStripeSize()
    • isAuxiliaryBufferRequired

      public boolean isAuxiliaryBufferRequired()
    • mightContainRefinements

      public boolean mightContainRefinements()
    • isLossless

      public boolean isLossless()
    • getBitmapWidth

      protected int getBitmapWidth()
    • getBitmapHeight

      protected int getBitmapHeight()