Class J2KReadState
- java.lang.Object
-
- com.github.jaiimageio.jpeg2000.impl.J2KReadState
-
public class J2KReadState extends Object
-
-
Constructor Summary
Constructors Constructor Description J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KImageReader reader)ConstructsJ2KReadState.J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KMetadata metadata, J2KImageReader reader)ConstructsJ2KReadState.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorModelgetColorModel()RectanglegetDestinationRegion()HeaderDecodergetHeader()intgetHeight()ImageTypeSpecifiergetImageType()SampleModelgetSampleModel()RastergetTile(int tileX, int tileY, WritableRaster raster)intgetWidth()RasterreadAsRaster()BufferedImagereadBufferedImage()
-
-
-
Constructor Detail
-
J2KReadState
public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KMetadata metadata, J2KImageReader reader)
ConstructsJ2KReadState.- Parameters:
iis- The input stream.param- The reading parameters.metadata- TheJ2KMetadatato cache the metadata read from the input stream.reader- TheJ2KImageReaderwhich holds this state. It is necessary for processing abortion.
-
J2KReadState
public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KImageReader reader)
ConstructsJ2KReadState.- Parameters:
iis- The input stream.param- The reading parameters.reader- TheJ2KImageReaderwhich holds this state. It is necessary for processing abortion.
-
-
Method Detail
-
getWidth
public int getWidth() throws IOException
- Throws:
IOException
-
getHeight
public int getHeight() throws IOException
- Throws:
IOException
-
getHeader
public HeaderDecoder getHeader()
-
getTile
public Raster getTile(int tileX, int tileY, WritableRaster raster) throws IOException
- Throws:
IOException
-
getDestinationRegion
public Rectangle getDestinationRegion()
-
readBufferedImage
public BufferedImage readBufferedImage() throws IOException
- Throws:
IOException
-
readAsRaster
public Raster readAsRaster() throws IOException
- Throws:
IOException
-
getImageType
public ImageTypeSpecifier getImageType() throws IOException
- Throws:
IOException
-
getSampleModel
public SampleModel getSampleModel()
-
getColorModel
public ColorModel getColorModel()
-
-