Package ome.codecs.services
Class JAIIIOServiceImpl
java.lang.Object
loci.common.services.AbstractService
ome.codecs.services.JAIIIOServiceImpl
- All Implemented Interfaces:
loci.common.services.Service,JAIIIOService
public class JAIIIOServiceImpl
extends loci.common.services.AbstractService
implements JAIIIOService
Implementation of JAIIIOService for reading and writing JPEG-2000 data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadImage(InputStream in) Reads an image using JAI Image I/O using the JPEG 2000 codec.readImage(InputStream in, JPEG2000CodecOptions options) Reads an image using JAI Image I/O using the JPEG 2000 codec.Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.readRaster(InputStream in, JPEG2000CodecOptions options) Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.voidwriteImage(OutputStream out, BufferedImage img, JPEG2000CodecOptions options) Writes an image using JAI Image I/O using the JPEG 2000 codec.Methods inherited from class loci.common.services.AbstractService
checkClassDependency
-
Field Details
-
NO_J2K_MSG
- See Also:
-
-
Constructor Details
-
JAIIIOServiceImpl
public JAIIIOServiceImpl()Default constructor.
-
-
Method Details
-
writeImage
public void writeImage(OutputStream out, BufferedImage img, JPEG2000CodecOptions options) throws IOException, loci.common.services.ServiceException Description copied from interface:JAIIIOServiceWrites an image using JAI Image I/O using the JPEG 2000 codec.- Specified by:
writeImagein interfaceJAIIIOService- Parameters:
out- Target output stream.img- Source buffered image.options- Options for the JPEG 2000 codec.- Throws:
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.
-
readImage
public BufferedImage readImage(InputStream in, JPEG2000CodecOptions options) throws IOException, loci.common.services.ServiceException Description copied from interface:JAIIIOServiceReads an image using JAI Image I/O using the JPEG 2000 codec.- Specified by:
readImagein interfaceJAIIIOService- Parameters:
in- Target input stream.options- Options for the JPEG 2000 codec.- Returns:
- An AWT buffered image.
- Throws:
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.
-
readImage
public BufferedImage readImage(InputStream in) throws IOException, loci.common.services.ServiceException Description copied from interface:JAIIIOServiceReads an image using JAI Image I/O using the JPEG 2000 codec.- Specified by:
readImagein interfaceJAIIIOService- Parameters:
in- Target input stream.- Returns:
- An AWT buffered image.
- Throws:
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.- See Also:
-
readRaster
public Raster readRaster(InputStream in, JPEG2000CodecOptions options) throws IOException, loci.common.services.ServiceException Description copied from interface:JAIIIOServiceReads an image into a raster using JAI Image I/O using the JPEG 2000 codec.- Specified by:
readRasterin interfaceJAIIIOService- Parameters:
in- Target input stream.options- Options for the JPEG 2000 codec.- Returns:
- An AWT image raster.
- Throws:
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.
-
readRaster
Description copied from interface:JAIIIOServiceReads an image into a raster using JAI Image I/O using the JPEG 2000 codec.- Specified by:
readRasterin interfaceJAIIIOService- Parameters:
in- Target input stream.- Returns:
- An AWT image raster.
- Throws:
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.- See Also:
-