Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/imageio/plugins/common/StandardMetadataFormat.java
/* * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.common; import java.util.ArrayList; import java.util.List; import javax.imageio.ImageTypeSpecifier; import javax.imageio.metadata.IIOMetadataFormatImpl; public class StandardMetadataFormat extends IIOMetadataFormatImpl { // Utility method for nodes with a single attribute named "value" private void addSingleAttributeElement(String elementName, String parentName, int dataType) { addElement(elementName, parentName, CHILD_POLICY_EMPTY); addAttribute(elementName, "value", dataType, true, null); } public StandardMetadataFormat() { super(standardMetadataFormatName, CHILD_POLICY_SOME); List<String> values; // root -> Chroma addElement("Chroma", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Chroma -> ColorSpaceType addElement("ColorSpaceType", "Chroma", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("XYZ"); values.add("Lab"); values.add("Luv"); values.add("YCbCr"); values.add("Yxy"); values.add("YCCK"); values.add("PhotoYCC"); values.add("RGB"); values.add("GRAY"); values.add("HSV"); values.add("HLS"); values.add("CMYK"); values.add("CMY"); values.add("2CLR"); values.add("3CLR"); values.add("4CLR"); values.add("5CLR"); values.add("6CLR"); values.add("7CLR"); values.add("8CLR"); values.add("9CLR"); values.add("ACLR"); values.add("BCLR"); values.add("CCLR"); values.add("DCLR"); values.add("ECLR"); values.add("FCLR"); addAttribute("ColorSpaceType", "name", DATATYPE_STRING, true, null, values); // root -> Chroma -> NumChannels addElement("NumChannels", "Chroma", CHILD_POLICY_EMPTY); addAttribute("NumChannels", "value", DATATYPE_INTEGER, true, 0, Integer.MAX_VALUE); // root -> Chroma -> Gamma addElement("Gamma", "Chroma", CHILD_POLICY_EMPTY); addAttribute("Gamma", "value", DATATYPE_FLOAT, true, null); // root -> Chroma -> BlackIsZero addElement("BlackIsZero", "Chroma", CHILD_POLICY_EMPTY); addBooleanAttribute("BlackIsZero", "value", true, true); // root -> Chroma -> Palette addElement("Palette", "Chroma", 0, Integer.MAX_VALUE); // root -> Chroma -> PaletteEntry addElement("PaletteEntry", "Palette", CHILD_POLICY_EMPTY); addAttribute("PaletteEntry", "index", DATATYPE_INTEGER, true, null); addAttribute("PaletteEntry", "red", DATATYPE_INTEGER, true, null); addAttribute("PaletteEntry", "green", DATATYPE_INTEGER, true, null); addAttribute("PaletteEntry", "blue", DATATYPE_INTEGER, true, null); addAttribute("PaletteEntry", "alpha", DATATYPE_INTEGER, false, "255"); // root -> Chroma -> BackgroundIndex addElement("BackgroundIndex", "Chroma", CHILD_POLICY_EMPTY); addAttribute("BackgroundIndex", "value", DATATYPE_INTEGER, true, null); // root -> Chroma -> BackgroundColor addElement("BackgroundColor", "Chroma", CHILD_POLICY_EMPTY); addAttribute("BackgroundColor", "red", DATATYPE_INTEGER, true, null); addAttribute("BackgroundColor", "green", DATATYPE_INTEGER, true, null); addAttribute("BackgroundColor", "blue", DATATYPE_INTEGER, true, null); // root -> Compression addElement("Compression", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Compression -> CompressionTypeName addSingleAttributeElement("CompressionTypeName", "Compression", DATATYPE_STRING); // root -> Compression -> Lossless addElement("Lossless", "Compression", CHILD_POLICY_EMPTY); addBooleanAttribute("Lossless", "value", true, true); // root -> Compression -> NumProgressiveScans addSingleAttributeElement("NumProgressiveScans", "Compression", DATATYPE_INTEGER); // root -> Compression -> BitRate addSingleAttributeElement("BitRate", "Compression", DATATYPE_FLOAT); // root -> Data addElement("Data", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Data -> PlanarConfiguration addElement("PlanarConfiguration", "Data", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("PixelInterleaved"); values.add("PlaneInterleaved"); values.add("LineInterleaved"); values.add("TileInterleaved"); addAttribute("PlanarConfiguration", "value", DATATYPE_STRING, true, null, values); // root -> Data -> SampleFormat addElement("SampleFormat", "Data", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("SignedIntegral"); values.add("UnsignedIntegral"); values.add("Real"); values.add("Index"); addAttribute("SampleFormat", "value", DATATYPE_STRING, true, null, values); // root -> Data -> BitsPerSample addElement("BitsPerSample", "Data", CHILD_POLICY_EMPTY); addAttribute("BitsPerSample", "value", DATATYPE_INTEGER, true, 1, Integer.MAX_VALUE); // root -> Data -> SignificantBitsPerSample addElement("SignificantBitsPerSample", "Data", CHILD_POLICY_EMPTY); addAttribute("SignificantBitsPerSample", "value", DATATYPE_INTEGER, true, 1, Integer.MAX_VALUE); // root -> Data -> SampleMSB addElement("SampleMSB", "Data", CHILD_POLICY_EMPTY); addAttribute("SampleMSB", "value", DATATYPE_INTEGER, true, 1, Integer.MAX_VALUE); // root -> Dimension addElement("Dimension", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Dimension -> PixelAspectRatio addSingleAttributeElement("PixelAspectRatio", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> ImageOrientation addElement("ImageOrientation", "Dimension", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("Normal"); values.add("Rotate90"); values.add("Rotate180"); values.add("Rotate270"); values.add("FlipH"); values.add("FlipV"); values.add("FlipHRotate90"); values.add("FlipVRotate90"); addAttribute("ImageOrientation", "value", DATATYPE_STRING, true, null, values); // root -> Dimension -> HorizontalPixelSize addSingleAttributeElement("HorizontalPixelSize", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> VerticalPixelSize addSingleAttributeElement("VerticalPixelSize", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> HorizontalPhysicalPixelSpacing addSingleAttributeElement("HorizontalPhysicalPixelSpacing", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> VerticalPhysicalPixelSpacing addSingleAttributeElement("VerticalPhysicalPixelSpacing", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> HorizontalPosition addSingleAttributeElement("HorizontalPosition", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> VerticalPosition addSingleAttributeElement("VerticalPosition", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> HorizontalPixelOffset addSingleAttributeElement("HorizontalPixelOffset", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> VerticalPixelOffset addSingleAttributeElement("VerticalPixelOffset", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> HorizontalScreenSize addSingleAttributeElement("HorizontalScreenSize", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> VerticalScreenSize addSingleAttributeElement("VerticalScreenSize", "Dimension", DATATYPE_INTEGER); // root -> Document addElement("Document", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Document -> FormatVersion addElement("FormatVersion", "Document", CHILD_POLICY_EMPTY); addAttribute("FormatVersion", "value", DATATYPE_STRING, true, null); // root -> Document -> SubimageInterpretation addElement("SubimageInterpretation", "Document", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("Standalone"); values.add("SinglePage"); values.add("FullResolution"); values.add("ReducedResolution"); values.add("PyramidLayer"); values.add("Preview"); values.add("VolumeSlice"); values.add("ObjectView"); values.add("Panorama"); values.add("AnimationFrame"); values.add("TransparencyMask"); values.add("CompositingLayer"); values.add("SpectralSlice"); values.add("Unknown"); addAttribute("SubimageInterpretation", "value", DATATYPE_STRING, true, null, values); // root -> Document -> ImageCreationTime addElement("ImageCreationTime", "Document", CHILD_POLICY_EMPTY); addAttribute("ImageCreationTime", "year", DATATYPE_INTEGER, true, null); addAttribute("ImageCreationTime", "month", DATATYPE_INTEGER, true, null, "1", "12", true, true); addAttribute("ImageCreationTime", "day", DATATYPE_INTEGER, true, null, "1", "31", true, true); addAttribute("ImageCreationTime", "hour", DATATYPE_INTEGER, false, "0", "0", "23", true, true); addAttribute("ImageCreationTime", "minute", DATATYPE_INTEGER, false, "0", "0", "59", true, true); // second = 60 denotes leap second addAttribute("ImageCreationTime", "second", DATATYPE_INTEGER, false, "0", "0", "60", true, true); // root -> Document -> ImageModificationTime addElement("ImageModificationTime", "Document", CHILD_POLICY_EMPTY); addAttribute("ImageModificationTime", "year", DATATYPE_INTEGER, true, null); addAttribute("ImageModificationTime", "month", DATATYPE_INTEGER, true, null, "1", "12", true, true); addAttribute("ImageModificationTime", "day", DATATYPE_INTEGER, true, null, "1", "31", true, true); addAttribute("ImageModificationTime", "hour", DATATYPE_INTEGER, false, "0", "0", "23", true, true); addAttribute("ImageModificationTime", "minute", DATATYPE_INTEGER, false, "0", "0", "59", true, true); // second = 60 denotes leap second addAttribute("ImageModificationTime", "second", DATATYPE_INTEGER, false, "0", "0", "60", true, true); // root -> Text addElement("Text", standardMetadataFormatName, 0, Integer.MAX_VALUE); // root -> Text -> TextEntry addElement("TextEntry", "Text", CHILD_POLICY_EMPTY); addAttribute("TextEntry", "keyword", DATATYPE_STRING, false, null); addAttribute("TextEntry", "value", DATATYPE_STRING, true, null); addAttribute("TextEntry", "language", DATATYPE_STRING, false, null); addAttribute("TextEntry", "encoding", DATATYPE_STRING, false, null); values = new ArrayList<>(); values.add("none"); values.add("lzw"); values.add("zip"); values.add("bzip"); values.add("other"); addAttribute("TextEntry", "compression", DATATYPE_STRING, false, "none", values); // root -> Transparency addElement("Transparency", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Transparency -> Alpha addElement("Alpha", "Transparency", CHILD_POLICY_EMPTY); values = new ArrayList<>(); values.add("none"); values.add("premultiplied"); values.add("nonpremultiplied"); addAttribute("Alpha", "value", DATATYPE_STRING, false, "none", values); // root -> Transparency -> TransparentIndex addSingleAttributeElement("TransparentIndex", "Transparency", DATATYPE_INTEGER); // root -> Transparency -> TransparentColor addElement("TransparentColor", "Transparency", CHILD_POLICY_EMPTY); addAttribute("TransparentColor", "value", DATATYPE_INTEGER, true, 0, Integer.MAX_VALUE); // root -> Transparency -> TileTransparencies addElement("TileTransparencies", "Transparency", 0, Integer.MAX_VALUE); // root -> Transparency -> TileTransparencies -> TransparentTile addElement("TransparentTile", "TileTransparencies", CHILD_POLICY_EMPTY); addAttribute("TransparentTile", "x", DATATYPE_INTEGER, true, null); addAttribute("TransparentTile", "y", DATATYPE_INTEGER, true, null); // root -> Transparency -> TileOpacities addElement("TileOpacities", "Transparency", 0, Integer.MAX_VALUE); // root -> Transparency -> TileOpacities -> OpaqueTile addElement("OpaqueTile", "TileOpacities", CHILD_POLICY_EMPTY); addAttribute("OpaqueTile", "x", DATATYPE_INTEGER, true, null); addAttribute("OpaqueTile", "y", DATATYPE_INTEGER, true, null); } public boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType) { return true; } }
⏎ com/sun/imageio/plugins/common/StandardMetadataFormat.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 59834👍, 0💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
JDK 17 java.management.jmod is the JMOD file for JDK 17 Management module. JDK 17 Management module ...