Class J2KReadState


  • public class J2KReadState
    extends java.lang.Object
    • Constructor Detail

      • J2KReadState

        public J2KReadState​(javax.imageio.stream.ImageInputStream iis,
                            J2KImageReadParamJava param,
                            J2KMetadata metadata,
                            J2KImageReader reader)
        Constructs J2KReadState.
        Parameters:
        iis - The input stream.
        param - The reading parameters.
        metadata - The J2KMetadata to cache the metadata read from the input stream.
        reader - The J2KImageReader which holds this state. It is necessary for processing abortion.
        Throws:
        java.lang.IllegalArgumentException - If the provided iis, param or metadata is null.
      • J2KReadState

        public J2KReadState​(javax.imageio.stream.ImageInputStream iis,
                            J2KImageReadParamJava param,
                            J2KImageReader reader)
        Constructs J2KReadState.
        Parameters:
        iis - The input stream.
        param - The reading parameters.
        reader - The J2KImageReader which holds this state. It is necessary for processing abortion.
        Throws:
        java.lang.IllegalArgumentException - If the provided iis, or param is null.
    • Method Detail

      • getWidth

        public int getWidth()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getHeight

        public int getHeight()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getTile

        public java.awt.image.Raster getTile​(int tileX,
                                             int tileY,
                                             java.awt.image.WritableRaster raster)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getDestinationRegion

        public java.awt.Rectangle getDestinationRegion()
      • readBufferedImage

        public java.awt.image.BufferedImage readBufferedImage()
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readAsRaster

        public java.awt.image.Raster readAsRaster()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getImageType

        public javax.imageio.ImageTypeSpecifier getImageType()
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getSampleModel

        public java.awt.image.SampleModel getSampleModel()
      • getColorModel

        public java.awt.image.ColorModel getColorModel()