Example usage for Java javax.imageio ImageIO fields, constructors, methods, implement or subclass
The text is from its open source code.
ImageInputStream | createImageInputStream(Object input) Returns an ImageInputStream that will take its input from the given Object . |
ImageOutputStream | createImageOutputStream(Object output) Returns an ImageOutputStream that will send its output to the given Object . |
File | getCacheDirectory() Returns the current value set by setCacheDirectory , or null if no explicit setting has been made. |
Iterator | getImageReaders(Object input) Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode the supplied Object , typically an ImageInputStream . |
Iterator | getImageReadersByFormatName(String formatName) Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode the named format. |
Iterator | getImageReadersByMIMEType(String MIMEType) Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode files with the given MIME type. |
Iterator | getImageReadersBySuffix(String fileSuffix) Returns an Iterator containing all currently registered ImageReader s that claim to be able to decode files with the given suffix. |
ImageWriter | getImageWriter(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. |
Iterator | getImageWriters(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. |
Iterator | getImageWritersByFormatName(String formatName) Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode the named format. |
Iterator | getImageWritersByMIMEType(String MIMEType) Returns an Iterator containing all currently registered ImageWriter s that claim to be able to encode files with the given MIME type. |
Iterator | getImageWritersBySuffix(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. |
boolean | getUseCache() 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. |
BufferedImage | read(File input) Returns a BufferedImage as the result of decoding a supplied File with an ImageReader chosen automatically from among those currently registered. |
BufferedImage | read(InputStream input) Returns a BufferedImage as the result of decoding a supplied InputStream with an ImageReader chosen automatically from among those currently registered. |
BufferedImage | read(URL input) Returns a BufferedImage as the result of decoding a supplied URL with an ImageReader chosen automatically from among those currently registered. |
BufferedImage | read(ImageInputStream stream) Returns a BufferedImage as the result of decoding a supplied ImageInputStream with an ImageReader chosen automatically from among those currently registered. |
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 . |
void | setCacheDirectory(File cacheDirectory) Sets the directory where cache files are to be created. |
void | setUseCache(boolean useCache) Sets a flag indicating whether a disk-based cache file should be used when creating ImageInputStream s and ImageOutputStream s. |
boolean | write(RenderedImage im, String formatName, ImageOutputStream output) Writes an image using the an arbitrary ImageWriter that supports the given format to an ImageOutputStream . |
boolean | write(RenderedImage im, String formatName, File output) Writes an image using an arbitrary ImageWriter that supports the given format to a File . |
boolean | write(RenderedImage im, String formatName, OutputStream output) Writes an image using an arbitrary ImageWriter that supports the given format to an OutputStream . |