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/tiff/TIFFFieldNode.java
/* * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.tiff; import java.util.Arrays; import java.util.List; import javax.imageio.metadata.IIOMetadataNode; import org.w3c.dom.Node; import javax.imageio.plugins.tiff.TIFFDirectory; import javax.imageio.plugins.tiff.TIFFField; import javax.imageio.plugins.tiff.TIFFTag; import javax.imageio.plugins.tiff.TIFFTagSet; /** * The {@code Node} representation of a {@code TIFFField} * wherein the child node is procedural rather than buffered. */ public class TIFFFieldNode extends IIOMetadataNode { private static boolean isIFD(TIFFField f) { int type = f.getType(); return f.hasDirectory() && (type == TIFFTag.TIFF_LONG || type == TIFFTag.TIFF_IFD_POINTER); } private static String getNodeName(TIFFField f) { return isIFD(f) ? "TIFFIFD" : "TIFFField"; } private boolean isIFD; private Boolean isInitialized = Boolean.FALSE; private TIFFField field; public TIFFFieldNode(TIFFField field) { super(getNodeName(field)); isIFD = isIFD(field); this.field = field; TIFFTag tag = field.getTag(); int tagNumber = tag.getNumber(); String tagName = tag.getName(); if(isIFD) { if(tagNumber != 0) { setAttribute("parentTagNumber", Integer.toString(tagNumber)); } if(tagName != null) { setAttribute("parentTagName", tagName); } TIFFDirectory dir = field.hasDirectory() ? field.getDirectory() : (TIFFDirectory)field.getData(); TIFFTagSet[] tagSets = dir.getTagSets(); if(tagSets != null) { StringBuilder tagSetNames = new StringBuilder(); for(int i = 0; i < tagSets.length; i++) { tagSetNames.append(tagSets[i].getClass().getName()); if(i != tagSets.length - 1) { tagSetNames.append(","); } } setAttribute("tagSets", tagSetNames.toString()); } } else { setAttribute("number", Integer.toString(tagNumber)); setAttribute("name", tagName); } } private synchronized void initialize() { if(isInitialized) return; if(isIFD) { TIFFDirectory dir = field.hasDirectory() ? field.getDirectory() : (TIFFDirectory)field.getData(); TIFFField[] fields = dir.getTIFFFields(); if(fields != null) { TIFFTagSet[] tagSets = dir.getTagSets(); List<TIFFTagSet> tagSetList = Arrays.asList(tagSets); int numFields = fields.length; for(int i = 0; i < numFields; i++) { TIFFField f = fields[i]; int tagNumber = f.getTagNumber(); TIFFTag tag = TIFFIFD.getTag(tagNumber, tagSetList); Node node = f.getAsNativeNode(); if (node != null) { appendChild(node); } } } } else { IIOMetadataNode child; int count = field.getCount(); if (field.getType() == TIFFTag.TIFF_UNDEFINED) { child = new IIOMetadataNode("TIFFUndefined"); byte[] data = field.getAsBytes(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < count; i++) { sb.append(Integer.toString(data[i] & 0xff)); if (i < count - 1) { sb.append(","); } } child.setAttribute("value", sb.toString()); } else { child = new IIOMetadataNode("TIFF" + TIFFField.getTypeName(field.getType()) + "s"); TIFFTag tag = field.getTag(); for (int i = 0; i < count; i++) { IIOMetadataNode cchild = new IIOMetadataNode("TIFF" + TIFFField.getTypeName(field.getType())); cchild.setAttribute("value", field.getValueAsString(i)); if (tag.hasValueNames() && field.isIntegral()) { int value = field.getAsInt(i); String name = tag.getValueName(value); if (name != null) { cchild.setAttribute("description", name); } } child.appendChild(cchild); } } appendChild(child); } isInitialized = Boolean.TRUE; } // Need to override this method to avoid a stack overflow exception // which will occur if super.appendChild is called from initialize(). public Node appendChild(Node newChild) { if (newChild == null) { throw new NullPointerException("newChild == null!"); } return super.insertBefore(newChild, null); } // Override all methods which refer to child nodes. public boolean hasChildNodes() { initialize(); return super.hasChildNodes(); } public int getLength() { initialize(); return super.getLength(); } public Node getFirstChild() { initialize(); return super.getFirstChild(); } public Node getLastChild() { initialize(); return super.getLastChild(); } public Node getPreviousSibling() { initialize(); return super.getPreviousSibling(); } public Node getNextSibling() { initialize(); return super.getNextSibling(); } public Node insertBefore(Node newChild, Node refChild) { initialize(); return super.insertBefore(newChild, refChild); } public Node replaceChild(Node newChild, Node oldChild) { initialize(); return super.replaceChild(newChild, oldChild); } public Node removeChild(Node oldChild) { initialize(); return super.removeChild(oldChild); } public Node cloneNode(boolean deep) { initialize(); return super.cloneNode(deep); } }
⏎ com/sun/imageio/plugins/tiff/TIFFFieldNode.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, 194328👍, 5💬
Popular Posts:
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...