0N/A<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2362N/ACopyright (c) 2000, Oracle and/or its affiliates. All rights reserved. 0N/ADO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/AThis code is free software; you can redistribute it and/or modify it 0N/Aunder the terms of the GNU General Public License version 2 only, as 2362N/Apublished by the Free Software Foundation. Oracle designates this 0N/Aparticular file as subject to the "Classpath" exception as provided 2362N/Aby Oracle in the LICENSE file that accompanied this code. 0N/AThis code is distributed in the hope that it will be useful, but WITHOUT 0N/AANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/AFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/Aversion 2 for more details (a copy is included in the LICENSE file that 0N/Aaccompanied this code). 0N/AYou should have received a copy of the GNU General Public License version 0N/A2 along with this work; if not, write to the Free Software Foundation, 0N/AInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2365N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A<
body bgcolor="white">
0N/AA package of the Java Image I/O API dealing with low-level I/O from
0N/AThe <
code>ImageInputStream</
code> interface unifies streaming and
0N/Afile-based operations. An abstract base class,
0N/A<
code>ImageInputStreamImpl</
code> is provided to simplify writing
0N/Aa new <
code>ImageInputStream</
code> class. Concrete implementation
0N/Aclasses (<
code>FileImageInputStream</
code>,
0N/A<
code>FileCacheImageInputStream</
code>, and
0N/A<
code>MemoryCacheImageInputStream</
code>) are provided that allow
0N/Ainput to come from a <
code>File</
code> or <
code>InputStream</
code>
0N/Awith or without the use of a temporary cache file.
0N/AThe <
code>ImageOutputStream</
code> interface performs an analogous
0N/Afunction for output. An abstract base class,
0N/A<
code>ImageOutputStreamImpl</
code> is provided, along with
0N/Aconcrete implementation classes (<
code>FileImageOutputStream</
code>,
0N/A<
code>FileCacheImageOutputStream</
code>, and
0N/A<
code>MemoryCacheImageOutputStream</
code>) are provided that allow
0N/Aoutput to go to a <
code>File</
code> or <
code>OutputStream</
code> with
0N/Aor without the use of a temporary cache file.
0N/AThe <
code>IIOByteBuffer</
code> class provides an alternative way to
0N/Aperform reads of sequences of bytes that reduces the amount of
0N/Ainternal data copying.