Java javax.imageio ImageIO fields, constructors, methods, implement or subclass

Example usage for Java javax.imageio ImageIO fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.imageio ImageIO.

The text is from its open source code.

Method

ImageInputStreamcreateImageInputStream(Object input)
Returns an ImageInputStream that will take its input from the given Object .
ImageOutputStreamcreateImageOutputStream(Object output)
Returns an ImageOutputStream that will send its output to the given Object .
FilegetCacheDirectory()
Returns the current value set by setCacheDirectory , or null if no explicit setting has been made.
IteratorgetImageReaders(Object input)
Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode the supplied Object , typically an ImageInputStream .
IteratorgetImageReadersByFormatName(String formatName)
Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode the named format.
IteratorgetImageReadersByMIMEType(String MIMEType)
Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode files with the given MIME type.
IteratorgetImageReadersBySuffix(String fileSuffix)
Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode files with the given suffix.
ImageWritergetImageWriter(ImageReader reader)
Returns an ImageWriter corresponding 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.
IteratorgetImageWriters(ImageTypeSpecifier type, String formatName)
Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode images of the given layout (specified using an ImageTypeSpecifier ) in the given format.
IteratorgetImageWritersByFormatName(String formatName)
Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode the named format.
IteratorgetImageWritersByMIMEType(String MIMEType)
Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode files with the given MIME type.
IteratorgetImageWritersBySuffix(String fileSuffix)
Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode files with the given suffix.
String[]getReaderFileSuffixes()
Returns an array of String s listing all of the file suffixes associated with the formats understood by the current set of registered readers.
String[]getReaderFormatNames()
Returns an array of String s listing all of the informal format names understood by the current set of registered readers.
String[]getReaderMIMETypes()
Returns an array of String s listing all of the MIME types understood by the current set of registered readers.
booleangetUseCache()
Returns the current value set by setUseCache , or true if no explicit setting has been made.
String[]getWriterFileSuffixes()
Returns an array of String s listing all of the file suffixes associated with the formats understood by the current set of registered writers.
String[]getWriterFormatNames()
Returns an array of String s listing all of the informal format names understood by the current set of registered writers.
String[]getWriterMIMETypes()
Returns an array of String s listing all of the MIME types understood by the current set of registered writers.
BufferedImageread(File input)
Returns a BufferedImage as the result of decoding a supplied File with an ImageReader chosen automatically from among those currently registered.
BufferedImageread(InputStream input)
Returns a BufferedImage as the result of decoding a supplied InputStream with an ImageReader chosen automatically from among those currently registered.
BufferedImageread(URL input)
Returns a BufferedImage as the result of decoding a supplied URL with an ImageReader chosen automatically from among those currently registered.
BufferedImageread(ImageInputStream stream)
Returns a BufferedImage as the result of decoding a supplied ImageInputStream with an ImageReader chosen automatically from among those currently registered.
voidscanForPlugins()
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 .
voidsetCacheDirectory(File cacheDirectory)
Sets the directory where cache files are to be created.
voidsetUseCache(boolean useCache)
Sets a flag indicating whether a disk-based cache file should be used when creating ImageInputStream s and ImageOutputStream s.
booleanwrite(RenderedImage im, String formatName, ImageOutputStream output)
Writes an image using the an arbitrary ImageWriter that supports the given format to an ImageOutputStream .
booleanwrite(RenderedImage im, String formatName, File output)
Writes an image using an arbitrary ImageWriter that supports the given format to a File .
booleanwrite(RenderedImage im, String formatName, OutputStream output)
Writes an image using an arbitrary ImageWriter that supports the given format to an OutputStream .