Class Jbig2SegmentReader.Jbig2Segment

java.lang.Object
com.itextpdf.io.codec.Jbig2SegmentReader.Jbig2Segment
All Implemented Interfaces:
Comparable<Jbig2SegmentReader.Jbig2Segment>
Enclosing class:
Jbig2SegmentReader

public static class Jbig2SegmentReader.Jbig2Segment extends Object implements Comparable<Jbig2SegmentReader.Jbig2Segment>
Inner class that holds information about a JBIG2 segment.
  • Constructor Details

    • Jbig2Segment

      public Jbig2Segment (int segment_number)
  • Method Details

    • compareTo

      public int compareTo (Jbig2SegmentReader.Jbig2Segment s)
      Specified by:
      compareTo in interface Comparable<Jbig2SegmentReader.Jbig2Segment>
    • getDataLength

      public long getDataLength()
      Retrieves the data length of a JBig2Segment object.
      Returns:
      data length value
    • setDataLength

      public void setDataLength (long dataLength)
      Sets the data length of a JBig2Segment object.
      Parameters:
      dataLength - data length value
    • getPage

      public int getPage()
      Retrieves the page number of a JBig2Segment object.
      Returns:
      page number
    • setPage

      public void setPage (int page)
      Sets the page number of a JBig2Segment object.
      Parameters:
      page - page number
    • getReferredToSegmentNumbers

      public int[] getReferredToSegmentNumbers()
      Retrieves the referred-to segment numbers of a JBig2Segment object.
      Returns:
      Every referred-to segment number
    • setReferredToSegmentNumbers

      public void setReferredToSegmentNumbers (int[] referredToSegmentNumbers)
      Sets the referred-to segment numbers of a JBig2Segment object.
      Parameters:
      referredToSegmentNumbers - Referred-to segment numbers
    • getSegmentRetentionFlags

      public boolean[] getSegmentRetentionFlags()
      Retrieves segment retention flags of a JBig2Segment object.
      Returns:
      Every segment retention flag value
    • setSegmentRetentionFlags

      public void setSegmentRetentionFlags (boolean[] segmentRetentionFlags)
      Sets segment retention flags of a JBig2Segment object.
      Parameters:
      segmentRetentionFlags - Segment retention flag values
    • getType

      public int getType()
      Retrieves type of the JBig2Segment object.
      Returns:
      Type value
    • setType

      public void setType (int type)
      Sets type of the JBig2Segment object.
      Parameters:
      type - Type value
    • isDeferredNonRetain

      public boolean isDeferredNonRetain()
      Retrieves whether the object is deferred without retention. Default value is false.
      Returns:
      true if deferred without retention, false otherwise
    • setDeferredNonRetain

      public void setDeferredNonRetain (boolean deferredNonRetain)
      Sets whether the JBig2Segments object is deferred without retention.
      Parameters:
      deferredNonRetain - true for deferred without retention, false otherwise
    • getCountOfReferredToSegments

      public int getCountOfReferredToSegments()
      Retrieves the count of the referred-to segments.
      Returns:
      count of referred-to segments
    • setCountOfReferredToSegments

      public void setCountOfReferredToSegments (int countOfReferredToSegments)
      Sets the count of referred-to segments of the JBig2Segment object.
      Parameters:
      countOfReferredToSegments - count of referred segments
    • getData

      public byte[] getData()
      Retrieves data of the JBig2Segment object.
      Returns:
      data bytes
    • setData

      public void setData (byte[] data)
      Sets data of the JBig2Segment object.
      Parameters:
      data - data bytes
    • getHeaderData

      public byte[] getHeaderData()
      Retrieves header data of the JBig2Segment object.
      Returns:
      header data bytes
    • setHeaderData

      public void setHeaderData (byte[] headerData)
      Sets header data of the JBig2Segment object.
      Parameters:
      headerData - header date bytes
    • isPageAssociationSize

      public boolean isPageAssociationSize()
      Retrieves page association size of the JBig2Segment object.
      Returns:
      page association size value
    • setPageAssociationSize

      public void setPageAssociationSize (boolean pageAssociationSize)
      Sets page association size of the JBig2Segment object.
      Parameters:
      pageAssociationSize - page association size
    • getPageAssociationOffset

      public int getPageAssociationOffset()
      Retrieves the page association offset of the JBig2Segment object.
      Returns:
      page association offset value
    • setPageAssociationOffset

      public void setPageAssociationOffset (int pageAssociationOffset)
      Sets page association offset of the JBig2Segment object.
      Parameters:
      pageAssociationOffset - page association offset
    • getSegmentNumber

      public int getSegmentNumber()
      Retrieves the segment number of the JBig2Segment object.
      Returns:
      segment number