Class RegionSegmentInformation

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

public class RegionSegmentInformation extends Object implements SegmentData
This class represents the "Region segment information" field, 7.4.1 (page 50).
Every region segment data starts with this part.
  • Constructor Details

    • RegionSegmentInformation

      public RegionSegmentInformation(SubInputStream subInputStream)
    • RegionSegmentInformation

      public RegionSegmentInformation()
  • Method Details

    • parseHeader

      public void parseHeader() throws IOException
      Throws:
      IOException
    • init

      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
      IntegerMaxValueException - if the maximum value limit of an integer is exceeded
      IOException - if an underlying IO operation fails
    • setBitmapWidth

      public void setBitmapWidth(int bitmapWidth)
    • getBitmapWidth

      public int getBitmapWidth()
    • setBitmapHeight

      public void setBitmapHeight(int bitmapHeight)
    • getBitmapHeight

      public int getBitmapHeight()
    • getXLocation

      public int getXLocation()
    • getYLocation

      public int getYLocation()
    • getCombinationOperator

      public CombinationOperator getCombinationOperator()