The ImageInputStream interface unifies streaming and file-based operations. An abstract base class, ImageInputStreamImpl is provided to simplify writing a new ImageInputStream class. Concrete implementation classes (FileImageInputStream, FileCacheImageInputStream, and MemoryCacheImageInputStream) are provided that allow input to come from a File or InputStream with or without the use of a temporary cache file. 
 The ImageOutputStream interface performs an analogous function for output. An abstract base class, ImageOutputStreamImpl is provided, along with concrete implementation classes (FileImageOutputStream, FileCacheImageOutputStream, and MemoryCacheImageOutputStream) are provided that allow output to go to a File or OutputStream with or without the use of a temporary cache file. 
 The IIOByteBuffer class provides an alternative way to perform reads of sequences of bytes that reduces the amount of internal data copying.
| Class | Description | 
|---|---|
| FileCacheImageInputStream | An implementation of  ImageInputStreamthat gets its input from a regularInputStream. | 
| FileCacheImageOutputStream | An implementation of  ImageOutputStreamthat writes its output to a regularOutputStream. | 
| FileImageInputStream | An implementation of  ImageInputStreamthat gets its input from aFileorRandomAccessFile. | 
| FileImageOutputStream | An implementation of  ImageOutputStreamthat writes its output directly to aFileorRandomAccessFile. | 
| IIOByteBuffer | A class representing a mutable reference to an array of bytes and an offset and length within that array. | 
| ImageInputStream | A seekable input stream interface for use by  ImageReaders. | 
| ImageInputStreamImpl | An abstract class implementing the  ImageInputStreaminterface. | 
| ImageOutputStream | A seekable output stream interface for use by  ImageWriters. | 
| ImageOutputStreamImpl | An abstract class implementing the  ImageOutputStreaminterface. | 
| MemoryCacheImageInputStream | An implementation of  ImageInputStreamthat gets its input from a regularInputStream. | 
| MemoryCacheImageOutputStream | An implementation of  ImageOutputStreamthat writes its output to a regularOutputStream. | 
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/imageio/stream/package-summary.html