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