Class J2KReadState
- java.lang.Object
-
- com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState
-
public class J2KReadState extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description J2KReadState(javax.imageio.stream.ImageInputStream iis, J2KImageReadParamJava param, J2KImageReader reader)ConstructsJ2KReadState.J2KReadState(javax.imageio.stream.ImageInputStream iis, J2KImageReadParamJava param, J2KMetadata metadata, J2KImageReader reader)ConstructsJ2KReadState.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.ColorModelgetColorModel()java.awt.RectanglegetDestinationRegion()HeaderDecodergetHeader()intgetHeight()javax.imageio.ImageTypeSpecifiergetImageType()java.awt.image.SampleModelgetSampleModel()java.awt.image.RastergetTile(int tileX, int tileY, java.awt.image.WritableRaster raster)intgetWidth()java.awt.image.RasterreadAsRaster()java.awt.image.BufferedImagereadBufferedImage()
-
-
-
Constructor Detail
-
J2KReadState
public J2KReadState(javax.imageio.stream.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.- Throws:
java.lang.IllegalArgumentException- If the providediis,paramormetadataisnull.
-
J2KReadState
public J2KReadState(javax.imageio.stream.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.- Throws:
java.lang.IllegalArgumentException- If the providediis, orparamisnull.
-
-
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
-
getHeader
public HeaderDecoder getHeader()
-
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()
-
-