Class PatternDictionary

java.lang.Object
org.apache.pdfbox.jbig2.segments.PatternDictionary
All Implemented Interfaces:
Dictionary, SegmentData

public class PatternDictionary extends Object implements Dictionary
This class represents the segment type "Pattern dictionary", 7.4.4.
  • Field Details

    • subInputStream

      private SubInputStream subInputStream
    • dataHeaderOffset

      private long dataHeaderOffset
      Segment data structure (only necessary if MMR is used)
    • dataHeaderLength

      private long dataHeaderLength
    • dataOffset

      private long dataOffset
    • dataLength

      private long dataLength
    • gbAtX

      private short[] gbAtX
    • gbAtY

      private short[] gbAtY
    • isMMREncoded

      private boolean isMMREncoded
      Pattern dictionary flags, 7.4.4.1.1
    • hdTemplate

      private byte hdTemplate
    • hdpWidth

      private short hdpWidth
      Width of the patterns in the pattern dictionary, 7.4.4.1.2
    • hdpHeight

      private short hdpHeight
      Height of the patterns in the pattern dictionary, 7.4.4.1.3
    • patterns

      private ArrayList<Bitmap> patterns
      Decoded bitmaps, stored to be used by segments, that refer to it
    • grayMax

      private int grayMax
      Largest gray-scale value, 7.4.4.1.4 Value: one less than the number of patterns defined in this pattern dictionary
  • Constructor Details

    • PatternDictionary

      public PatternDictionary()
  • Method Details