API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio. ImageIO View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      ImageIO
Implements
Subclasses
Description
publicfinal class ImageIO
A class containing static convenience methods for locating ImageReaders and ImageWriters, and performing simple encoding and decoding.
See also:   
Constructors
private ImageIO ()
Constructor is private to prevent instantiation.
Methods
Hide/Show inherited methods
publicstatic ImageInputStream createImageInputStream (Object input) throws IOException
  Returns an ImageInputStream that will take its input from the given Object.
publicstatic ImageOutputStream createImageOutputStream (Object output) throws IOException
  Returns an ImageOutputStream that will send its output to the given Object.
publicstatic File getCacheDirectory ()
  Returns the current value set by setCacheDirectory, or null if no explicit setting has been made.
publicstatic ImageReader getImageReader (ImageWriter writer)
  Returns an ImageReadercorresponding to the given ImageWriter, if there is one, or null if the plug-in for this ImageWriter does not specify a corresponding ImageReader, or if the given ImageWriter is not registered.
publicstatic Iterator<ImageReader> getImageReaders (Object input)
  Returns an Iterator containing all currently registered ImageReaders that claim to be able to decode the supplied Object, typically an ImageInputStream.
publicstatic Iterator<ImageReader> getImageReadersByFormatName (String formatName)
  Returns an Iterator containing all currently registered ImageReaders that claim to be able to decode the named format.
publicstatic Iterator<ImageReader> getImageReadersByMIMEType (String MIMEType)
  Returns an Iterator containing all currently registered ImageReaders that claim to be able to decode files with the given MIME type.
publicstatic Iterator<ImageReader> getImageReadersBySuffix (String fileSuffix)
  Returns an Iterator containing all currently registered ImageReaders that claim to be able to decode files with the given suffix.
publicstatic Iterator<ImageTranscoder> getImageTranscoders (ImageReader reader, ImageWriter writer)
  Returns an Iterator containing all currently registered ImageTranscoders that claim to be able to transcode between the metadata of the given ImageReader and ImageWriter.
publicstatic ImageWriter getImageWriter (ImageReader reader)
  Returns an ImageWritercorresponding to the given ImageReader, if there is one, or null if the plug-in for this ImageReader does not specify a corresponding ImageWriter, or if the given ImageReader is not registered.
publicstatic Iterator<ImageWriter> getImageWriters (ImageTypeSpecifier type, String formatName)
  Returns an Iterator containing all currently registered ImageWriters that claim to be able to encode images of the given layout (specified using an ImageTypeSpecifier) in the given format.
publicstatic Iterator<ImageWriter> getImageWritersByFormatName (String formatName)
  Returns an Iterator containing all currently registered ImageWriters that claim to be able to encode the named format.
publicstatic Iterator<ImageWriter> getImageWritersByMIMEType (String MIMEType)
  Returns an Iterator containing all currently registered ImageWriters that claim to be able to encode files with the given MIME type.
publicstatic Iterator<ImageWriter> getImageWritersBySuffix (String fileSuffix)
  Returns an Iterator containing all currently registered ImageWriters that claim to be able to encode files with the given suffix.
publicstatic String getReaderFileSuffixes ()
  Returns an array of Strings listing all of the file suffixes associated with the formats understood by the current set of registered readers.
publicstatic String getReaderFormatNames ()
  Returns an array of Strings listing all of the informal format names understood by the current set of registered readers.
publicstatic String getReaderMIMETypes ()
  Returns an array of Strings listing all of the MIME types understood by the current set of registered readers.
publicstatic boolean getUseCache ()
  Returns the current value set by setUseCache, or true if no explicit setting has been made.
publicstatic String getWriterFileSuffixes ()
  Returns an array of Strings listing all of the file suffixes associated with the formats understood by the current set of registered writers.
publicstatic String getWriterFormatNames ()
  Returns an array of Strings listing all of the informal format names understood by the current set of registered writers.
publicstatic String getWriterMIMETypes ()
  Returns an array of Strings listing all of the MIME types understood by the current set of registered writers.
publicstatic BufferedImage read (File input) throws IOException
  Returns a BufferedImage as the result of decoding a supplied File with an ImageReader chosen automatically from among those currently registered.
publicstatic BufferedImage read (ImageInputStream stream) throws IOException
  Returns a BufferedImage as the result of decoding a supplied ImageInputStream with an ImageReader chosen automatically from among those currently registered.
publicstatic BufferedImage read (InputStream input) throws IOException
  Returns a BufferedImage as the result of decoding a supplied InputStream with an ImageReader chosen automatically from among those currently registered.
publicstatic BufferedImage read (URL input) throws IOException
  Returns a BufferedImage as the result of decoding a supplied URL with an ImageReader chosen automatically from among those currently registered.
publicstatic void scanForPlugins ()
  Scans for plug-ins on the application class path, loads their service provider classes, and registers a service provider instance for each one found with the IIORegistry.
publicstatic void setCacheDirectory (File cacheDirectory)
  Sets the directory where cache files are to be created.
publicstatic void setUseCache (boolean useCache)
  Sets a flag indicating whether a disk-based cache file should be used when creating ImageInputStreams and ImageOutputStreams.
publicstatic boolean write (RenderedImage im, String formatName, File output) throws IOException
  Writes an image using an arbitrary ImageWriter that supports the given format to a File.
publicstatic boolean write (RenderedImage im, String formatName, ImageOutputStream output) throws IOException
  Writes an image using the an arbitrary ImageWriter that supports the given format to an ImageOutputStream.
publicstatic boolean write (RenderedImage im, String formatName, OutputStream output) throws IOException
  Writes an image using an arbitrary ImageWriter that supports the given format to an OutputStream.
Fields
Hide/Show inherited fields
Nested Classes
  ImageIO.CacheInfo
A class to hold information about caching.
  ImageIO.ImageReaderIterator
  ImageIO.CanDecodeInputFilter
  ImageIO.CanEncodeImageAndFormatFilter
  ImageIO.ContainsFilter
  ImageIO.ImageWriterIterator
  ImageIO.ImageTranscoderIterator
  ImageIO.TranscoderFilter
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar