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 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\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/jpeg/COMMarkerSegment.java
/* * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.jpeg; import javax.imageio.metadata.IIOMetadataNode; import javax.imageio.stream.ImageOutputStream; import javax.imageio.metadata.IIOInvalidTreeException; import java.io.IOException; import java.io.UnsupportedEncodingException; import org.w3c.dom.Node; /** * A Comment marker segment. Retains an array of bytes representing the * comment data as it is read from the stream. If the marker segment is * constructed from a String, then local default encoding is assumed * when creating the byte array. If the marker segment is created from * an {@code IIOMetadataNode}, the user object, if present is * assumed to be a byte array containing the comment data. If there is * no user object then the comment attribute is used to create the * byte array, again assuming the default local encoding. */ class COMMarkerSegment extends MarkerSegment { private static final String ENCODING = "ISO-8859-1"; /** * Constructs a marker segment from the given buffer, which contains * data from an {@code ImageInputStream}. This is used when * reading metadata from a stream. */ COMMarkerSegment(JPEGBuffer buffer) throws IOException { super(buffer); loadData(buffer); } /** * Constructs a marker segment from a String. This is used when * modifying metadata from a non-native tree and when transcoding. * The default encoding is used to construct the byte array. */ COMMarkerSegment(String comment) { super(JPEG.COM); data = comment.getBytes(); // Default encoding } /** * Constructs a marker segment from a native tree node. If the node * is an {@code IIOMetadataNode} and contains a user object, * that object is used rather than the string attribute. If the * string attribute is used, the default encoding is used. */ COMMarkerSegment(Node node) throws IIOInvalidTreeException{ super(JPEG.COM); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; data = (byte []) ourNode.getUserObject(); } if (data == null) { String comment = node.getAttributes().getNamedItem("comment").getNodeValue(); if (comment != null) { data = comment.getBytes(); // Default encoding } else { throw new IIOInvalidTreeException("Empty comment node!", node); } } } /** * Returns the array encoded as a String, using ISO-Latin-1 encoding. * If an application needs another encoding, the data array must be * consulted directly. */ String getComment() { try { return new String (data, ENCODING); } catch (UnsupportedEncodingException e) {} // Won't happen return null; } /** * Returns an {@code IIOMetadataNode} containing the data array * as a user object and a string encoded using ISO-8895-1, as an * attribute. */ IIOMetadataNode getNativeNode() { IIOMetadataNode node = new IIOMetadataNode("com"); node.setAttribute("comment", getComment()); if (data != null) { node.setUserObject(data.clone()); } return node; } /** * Writes the data for this segment to the stream in * valid JPEG format, directly from the data array. */ void write(ImageOutputStream ios) throws IOException { length = 2 + data.length; writeTag(ios); ios.write(data); } void print() { printTag("COM"); System.out.println("<" + getComment() + ">"); } }
⏎ com/sun/imageio/plugins/jpeg/COMMarkerSegment.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 159972👍, 5💬
Popular Posts:
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...