Package com.pearsoneduc.ip.io

Provides classes to handle input of images from and output of images to files in various common formats.

See:
          Description

Interface Summary
ImageDecoder Interface implemented by all image format decoding classes.
ImageEncoder Interface implemented by all image format encoding classes.
PPMConstants Defines some constants used in classes that handle the PBM, PGM and PPM image formats.
SIFConstants Defines some constants related to the SIF image format.
 

Class Summary
ImageFile Defines static factory methods that create image encoders and decoders for files.
JPEGDecoder Reads image data in JPEG format from a stream or a file.
JPEGEncoder Writes image data to a stream or file encoded in the JPEG format.
PNGDecoder Reads image data in the PNG format from a stream or a file.
PNGEncoder Writes image data to a stream or a file encoded in the PNG format.
PPMDecoder Reads image data in the PBM, PGM or PPM format from a stream or a file.
PPMEncoder Writes image data to a stream or a file encoded in PBM, PGM or PPM format, as appropriate.
SIFDecoder Reads image data in SIF format from a stream or a file.
SIFEncoder Writes image data to a stream or file encoded in the SIF format.
 

Exception Summary
ImageDecoderException Base class for exceptions thrown by image format decoding classes.
ImageEncoderException Base class for exceptions thrown by image format encoding classes.
JPEGDecoderException Exception thrown if a JPEGDecoder fails to process a JPEG image file.
JPEGEncoderException Exception thrown if a JPEGEncoder cannot write an image in JPEG format.
PNGDecoderException Exception thrown if a PNGDecoder fails to process a PNG image file.
PNGEncoderException Exception thrown if a PNGEncoder cannot write an image in PNG format.
PPMDecoderException Exception thrown if a PPMDecoder fails to parse a PBM, PGM or PPM image file.
PPMEncoderException Exception thrown if a PPMEncoder cannot write an image in PBM, PGM or PPM format.
SIFDecoderException Exception thrown if a SIFDecoder cannot read image data in SIF format.
SIFEncoderException Exception thrown if a SIFEncoder cannot write image data in SIF format.
 

Package com.pearsoneduc.ip.io Description

Provides classes to handle input of images from and output of images to files in various common formats.

Currently, support exists for: the "PBMPLUS" formats PBM, PGM and PPM (ASCII versions only); SIF, a simple home-grown format; PNG, the Portable Network Graphics format; and JFIF, the JPEG File Interchange Format.

For each supported format, there exists an encoder class, implementing the ImageEncoder interface, and a decoder class, implementing the ImageDecoder interface. Images can be read or written by calling the methods defined in these interfaces, freeing client code from the need for any explicit knowledge of the file formats supported by the system.