ImageReaders and ImageWriters, and
performing simple encoding and decoding.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ImageIO.
A class to hold information about caching. |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| private static enum | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ImageIO. | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static final IIORegistry | |
| private static Method | |
| private static Method | |
| private static Method |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static ImageInputStream | Returns: anImageInputStream, or null.an input)Object to be used as an input
source, such as a File, readable
RandomAccessFile, or InputStream.Returns an |
| public static ImageOutputStream | Returns: anImageOutputStream, or
null.an output)Object to be used as an output
destination, such as a File, writable
RandomAccessFile, or OutputStream.Returns an |
| private static boolean | doWrite(RenderedImage im, ImageWriter writer, ImageOutputStream output)
Writes image to output stream using given image writer. |
| public static File | Returns: aFile indicating the directory where
cache files will be created, or null to indicate
the system-dependent default temporary-file directory.Returns the current value set by
|
| private static synchronized ImageIO. | |
| public static ImageReader | Returns: anImageReader, or null.an instance of a registered writer)ImageWriter.Returns an |
| public static Iterator | Returns: anIterator containing ImageReaders.an input)ImageInputStream or other
Object containing encoded image data.Returns an |
| public static Iterator | Returns: anIterator containing
ImageReaders.a formatName)String containing the informal
name of a format (e.g., "jpeg" or "tiff".Returns an |
| public static Iterator | Returns: anIterator containing
ImageReaders.a MIMEType)String containing a file
suffix (e.g., "image/jpeg" or "image/x-bmp").Returns an |
| public static Iterator | Returns: anIterator containing
ImageReaders.a fileSuffix)String containing a file
suffix (e.g., "jpg" or "tiff").Returns an |
| public static Iterator | Returns: anIterator containing
ImageTranscoders.an reader, ImageWriter ImageReader.an writer)ImageWriter.Returns an |
| public static ImageWriter | Returns: anImageWriter, or null.an instance of a registered reader)ImageReader.Returns an |
| public static Iterator | Returns: anIterator containing ImageWriters.an type, String ImageTypeSpecifier indicating the
layout of the image to be written.the informal name of the formatName)format.Returns an |
| public static Iterator | Returns: anIterator containing
ImageWriters.a formatName)String containing the informal
name of a format (e.g., "jpeg" or "tiff".Returns an |
| public static Iterator | Returns: anIterator containing ImageWriters.a MIMEType)String containing a file
suffix (e.g., "image/jpeg" or "image/x-bmp").Returns an |
| public static Iterator | Returns: anIterator containing ImageWriters.a fileSuffix)String containing a file
suffix (e.g., "jpg" or "tiff").Returns an |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| private static <S extends ImageReaderWriterSpi> String[] | |
| private static String | getTempDir()
Returns the default temporary (cache) directory as defined by the java.io.tmpdir system property. |
| public static boolean | Returns: true if a disk-based cache may be used forImageInputStreams and
ImageOutputStreams.Returns the current value set by |
| private static ImageWriter | getWriter(RenderedImage im, String formatName)
Returns |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| public static String[] | Returns: an array ofStrings.Returns an array of |
| private static boolean | hasCachePermission()
Determines whether the caller has write access to the cache
directory, stores the result in the |
| public static BufferedImage | |
| public static BufferedImage | Returns: aBufferedImage containing the decoded
contents of the input, or null.an input)InputStream to read from.Returns a |
| public static BufferedImage | |
| public static BufferedImage | Returns: aBufferedImage containing the decoded
contents of the input, or null.an stream)ImageInputStream to read from.Returns a |
| public static 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
|
| public static void | setCacheDirectory(File
a cacheDirectory)File specifying a directory.Sets the directory where cache files are to be created. |
| public static void | setUseCache(boolean
a useCache)boolean indicating whether a
cache file should be used, in cases where it is optional.Sets a flag indicating whether a disk-based cache file should
be used when creating |
| public static boolean | Returns: false if no appropriate writer is found.a im, String RenderedImage to be written.a formatName, ImageOutputStream String containing the informal
name of the format.an output)ImageOutputStream to be written to.Writes an image using an arbitrary |
| public static boolean | Returns: false if no appropriate writer is found.a im, String RenderedImage to be written.a formatName, File String containing the informal
name of the format.a output)File to be written to.Writes an image using an arbitrary |
| public static boolean | Returns: false if no appropriate writer is found.a im, String RenderedImage to be written.a formatName, OutputStream String containing the informal
name of the format.an output)OutputStream to be written to.Writes an image using an arbitrary |