Class Jbig2ImageData


  • public class Jbig2ImageData
    extends ImageData
    • Field Detail

      • page

        private int page
    • Constructor Detail

      • Jbig2ImageData

        protected Jbig2ImageData​(java.net.URL url,
                                 int page)
      • Jbig2ImageData

        protected Jbig2ImageData​(byte[] bytes,
                                 int page)
    • Method Detail

      • getPage

        public int getPage()
      • getNumberOfPages

        public static int getNumberOfPages​(byte[] bytes)
        Gets the number of pages in a JBIG2 image.
        Parameters:
        bytes - a byte array containing a JBIG2 image
        Returns:
        the number of pages
      • getNumberOfPages

        public static int getNumberOfPages​(RandomAccessFileOrArray raf)
        Gets the number of pages in a JBIG2 image.
        Parameters:
        raf - a RandomAccessFileOrArray containing a JBIG2 image
        Returns:
        the number of pages
      • canImageBeInline

        public boolean canImageBeInline()
        Description copied from class: ImageData
        Checks if image can be inline
        Overrides:
        canImageBeInline in class ImageData
        Returns:
        if the image can be inline