2
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
2 |
<html>
|
|
3 |
<head>
|
|
4 |
<!--
|
|
5 |
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
|
|
6 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
7 |
|
|
8 |
This code is free software; you can redistribute it and/or modify it
|
|
9 |
under the terms of the GNU General Public License version 2 only, as
|
|
10 |
published by the Free Software Foundation. Sun designates this
|
|
11 |
particular file as subject to the "Classpath" exception as provided
|
|
12 |
by Sun in the LICENSE file that accompanied this code.
|
|
13 |
|
|
14 |
This code is distributed in the hope that it will be useful, but WITHOUT
|
|
15 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
16 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
17 |
version 2 for more details (a copy is included in the LICENSE file that
|
|
18 |
accompanied this code).
|
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License version
|
|
21 |
2 along with this work; if not, write to the Free Software Foundation,
|
|
22 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
23 |
|
|
24 |
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
25 |
CA 95054 USA or visit www.sun.com if you need additional information or
|
|
26 |
have any questions.
|
|
27 |
-->
|
|
28 |
|
|
29 |
</head>
|
|
30 |
|
|
31 |
<body bgcolor="white">
|
|
32 |
|
|
33 |
A package of the Java Image I/O API dealing with low-level I/O from
|
|
34 |
files and streams.
|
|
35 |
|
|
36 |
<p>
|
|
37 |
|
|
38 |
The <code>ImageInputStream</code> interface unifies streaming and
|
|
39 |
file-based operations. An abstract base class,
|
|
40 |
<code>ImageInputStreamImpl</code> is provided to simplify writing
|
|
41 |
a new <code>ImageInputStream</code> class. Concrete implementation
|
|
42 |
classes (<code>FileImageInputStream</code>,
|
|
43 |
<code>FileCacheImageInputStream</code>, and
|
|
44 |
<code>MemoryCacheImageInputStream</code>) are provided that allow
|
|
45 |
input to come from a <code>File</code> or <code>InputStream</code>
|
|
46 |
with or without the use of a temporary cache file.
|
|
47 |
|
|
48 |
<p>
|
|
49 |
|
|
50 |
The <code>ImageOutputStream</code> interface performs an analogous
|
|
51 |
function for output. An abstract base class,
|
|
52 |
<code>ImageOutputStreamImpl</code> is provided, along with
|
|
53 |
concrete implementation classes (<code>FileImageOutputStream</code>,
|
|
54 |
<code>FileCacheImageOutputStream</code>, and
|
|
55 |
<code>MemoryCacheImageOutputStream</code>) are provided that allow
|
|
56 |
output to go to a <code>File</code> or <code>OutputStream</code> with
|
|
57 |
or without the use of a temporary cache file.
|
|
58 |
|
|
59 |
<p>
|
|
60 |
|
|
61 |
The <code>IIOByteBuffer</code> class provides an alternative way to
|
|
62 |
perform reads of sequences of bytes that reduces the amount of
|
|
63 |
internal data copying.
|
|
64 |
|
|
65 |
@since 1.4
|
|
66 |
</body>
|
|
67 |
</html>
|