public class JAIIIOServiceImpl extends loci.common.services.AbstractService implements JAIIIOService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO_J2K_MSG |
private javax.imageio.spi.IIORegistry |
serviceRegistry |
Constructor and Description |
---|
JAIIIOServiceImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
private com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader |
getReader()
Set up the JPEG-2000 image reader.
|
java.awt.image.BufferedImage |
readImage(java.io.InputStream in)
Reads an image using JAI Image I/O using the JPEG 2000 codec.
|
java.awt.image.BufferedImage |
readImage(java.io.InputStream in,
JPEG2000CodecOptions options)
Reads an image using JAI Image I/O using the JPEG 2000 codec.
|
java.awt.image.Raster |
readRaster(java.io.InputStream in)
Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.
|
java.awt.image.Raster |
readRaster(java.io.InputStream in,
JPEG2000CodecOptions options)
Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.
|
private static javax.imageio.spi.IIORegistry |
registerServiceProviders()
Register the JPEG-2000 readers with the reader service.
|
void |
writeImage(java.io.OutputStream out,
java.awt.image.BufferedImage img,
JPEG2000CodecOptions options)
Writes an image using JAI Image I/O using the JPEG 2000 codec.
|
public static final java.lang.String NO_J2K_MSG
private javax.imageio.spi.IIORegistry serviceRegistry
public void writeImage(java.io.OutputStream out, java.awt.image.BufferedImage img, JPEG2000CodecOptions options) throws java.io.IOException, loci.common.services.ServiceException
JAIIIOService
writeImage
in interface JAIIIOService
out
- Target output stream.img
- Source buffered image.options
- Options for the JPEG 2000 codec.java.io.IOException
- Thrown if there is an error reading from or writing
to one of the target streams / buffers.loci.common.services.ServiceException
- Thrown if there is an error initializing or
interacting with the dependencies of the service.public java.awt.image.BufferedImage readImage(java.io.InputStream in, JPEG2000CodecOptions options) throws java.io.IOException, loci.common.services.ServiceException
JAIIIOService
readImage
in interface JAIIIOService
in
- Target input stream.options
- Options for the JPEG 2000 codec.java.io.IOException
- Thrown if there is an error reading from or writing
to one of the target streams / buffers.loci.common.services.ServiceException
- Thrown if there is an error initializing or
interacting with the dependencies of the service.public java.awt.image.BufferedImage readImage(java.io.InputStream in) throws java.io.IOException, loci.common.services.ServiceException
JAIIIOService
readImage
in interface JAIIIOService
in
- Target input stream.java.io.IOException
- Thrown if there is an error reading from or writing
to one of the target streams / buffers.loci.common.services.ServiceException
- Thrown if there is an error initializing or
interacting with the dependencies of the service.JAIIIOService.readImage(InputStream, JPEG2000CodecOptions)
public java.awt.image.Raster readRaster(java.io.InputStream in, JPEG2000CodecOptions options) throws java.io.IOException, loci.common.services.ServiceException
JAIIIOService
readRaster
in interface JAIIIOService
in
- Target input stream.options
- Options for the JPEG 2000 codec.java.io.IOException
- Thrown if there is an error reading from or writing
to one of the target streams / buffers.loci.common.services.ServiceException
- Thrown if there is an error initializing or
interacting with the dependencies of the service.public java.awt.image.Raster readRaster(java.io.InputStream in) throws java.io.IOException, loci.common.services.ServiceException
JAIIIOService
readRaster
in interface JAIIIOService
in
- Target input stream.java.io.IOException
- Thrown if there is an error reading from or writing
to one of the target streams / buffers.loci.common.services.ServiceException
- Thrown if there is an error initializing or
interacting with the dependencies of the service.JAIIIOService.readRaster(InputStream, JPEG2000CodecOptions)
private com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader getReader()
private static javax.imageio.spi.IIORegistry registerServiceProviders()
Copyright © 2018 Open Microscopy Environment