Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.desktop/share/classes/javax/imageio/metadata/package-info.java
41153 views
1
/*
2
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
/**
27
* A package of the Java Image I/O API dealing with reading and writing
28
* metadata.
29
* <p>
30
* When reading an image, its per-stream and per-image metadata is made
31
* available as an {@code IIOMetadata} object. The internals of this object are
32
* specific to the plug-in that created it. Its contents may be accessed in the
33
* form of an XML {@code Document}, which is implemented as a tree of
34
* {@code IIOMetadataNode} objects.
35
* <p>
36
* When writing an image, its metadata may be set by defining or modifying an
37
* {@code IIOMetadata} object. Such an object may be obtained from an
38
* {@code ImageWriter} or {@code ImageTranscoder} (from the
39
* {@code javax.imageio} package). Once such an object has been obtained, its
40
* contents may be set of modified via a {@code Document} consisting of
41
* {@code IIOMetadataNode}s. The document format may optionally be described
42
* using an {@code IIOMetadataFormat} object.
43
* <p>
44
* The format of the metadata contained in the XML {@code Document} is
45
* identified by a string which appears as the root node of the tree of
46
* {@code IIOMetadataNode} objects. This string contains a version number, e.g.
47
* "javax_imageio_jpeg_image_1.0". Readers and writers may support multiple
48
* versions of the same basic format and the Image I/O API has methods that
49
* allow specifying which version to use by passing the string to the
50
* method/constructor used to obtain an {@code IIOMetadata} object. In some
51
* cases, a more recent version may not be strictly compatible with a program
52
* written expecting an older version (for an example, see the Native Metadata
53
* Format section of the JPEG Metadata Usage Notes below).
54
* <p>
55
* Plug-ins may choose to support a
56
* <A HREF="doc-files/standard_metadata.html">standard (plug-in neutral) format
57
* </A>. This format does not provide lossless encoding of metadata, but allows
58
* a portion of the metadata to be accessed in a generic manner.
59
* <p>
60
* Each of the standard plug-ins supports a so-called "native" metadata format,
61
* which encodes its metadata losslessly:
62
* <ul>
63
* <li><A HREF="doc-files/bmp_metadata.html">BMP metadata</A></li>
64
* <li><A HREF="doc-files/gif_metadata.html">GIF metadata</A></li>
65
* <li><A HREF="doc-files/jpeg_metadata.html">JPEG metadata</A></li>
66
* <li><A HREF="doc-files/png_metadata.html">PNG metadata</A></li>
67
* <li><A HREF="doc-files/tiff_metadata.html#StreamMetadata">
68
* TIFF metadata</A></li>
69
* <li><A HREF="doc-files/wbmp_metadata.html">WBMP metadata</A></li>
70
* </ul>
71
* @since 1.4
72
*/
73
package javax.imageio.metadata;
74
75