Class J2KReadState
- java.lang.Object
-
- com.sun.media.imageioimpl.plugins.jpeg2000.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 ColorModel
getColorModel()
Rectangle
getDestinationRegion()
HeaderDecoder
getHeader()
int
getHeight()
ImageTypeSpecifier
getImageType()
SampleModel
getSampleModel()
Raster
getTile(int tileX, int tileY, WritableRaster raster)
int
getWidth()
Raster
readAsRaster()
BufferedImage
readBufferedImage()
-
-
-
Constructor Detail
-
J2KReadState
public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KMetadata metadata, J2KImageReader reader)
ConstructsJ2KReadState
.- Parameters:
iis
- The input stream.param
- The reading parameters.metadata
- TheJ2KMetadata
to cache the metadata read from the input stream.reader
- TheJ2KImageReader
which holds this state. It is necessary for processing abortion.- Throws:
IllegalArgumentException
- If the providediis
,param
ormetadata
isnull
.
-
J2KReadState
public J2KReadState(ImageInputStream iis, J2KImageReadParamJava param, J2KImageReader reader)
ConstructsJ2KReadState
.- Parameters:
iis
- The input stream.param
- The reading parameters.reader
- TheJ2KImageReader
which holds this state. It is necessary for processing abortion.- Throws:
IllegalArgumentException
- If the providediis
, orparam
isnull
.
-
-
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()
-
-