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.xml.jmod - XML Module
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module.
JDK 17 XML module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.xml.jmod.
JDK 17 XML module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 XML module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.xml.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/org/apache/xalan/internal/xsltc/dom/NodeSortRecordFactory.java
/* * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xalan.internal.xsltc.dom; import com.sun.org.apache.xalan.internal.utils.ObjectFactory; import com.sun.org.apache.xalan.internal.xsltc.DOM; import com.sun.org.apache.xalan.internal.xsltc.Translet; import com.sun.org.apache.xalan.internal.xsltc.TransletException; import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; import com.sun.org.apache.xml.internal.utils.LocaleUtility; import java.lang.reflect.InvocationTargetException; import java.text.Collator; import java.util.Locale; /** * @LastModified: Oct 2017 */ public class NodeSortRecordFactory { private static int DESCENDING = "descending".length(); private static int NUMBER = "number".length(); private final DOM _dom; private final String _className; private Class<?> _class; private SortSettings _sortSettings; /** * */ protected Collator _collator; /** * Creates a NodeSortRecord producing object. The DOM specifies which tree * to get the nodes to sort from, the class name specifies what auxillary * class to use to sort the nodes (this class is generated by the Sort * class), and the translet parameter is needed for methods called by * this object. * * @deprecated This constructor is no longer used in generated code. It * exists only for backwards compatibility. */ @Deprecated public NodeSortRecordFactory(DOM dom, String className, Translet translet, String order[], String type[]) throws TransletException { this(dom, className, translet, order, type, null, null); } /** * Creates a NodeSortRecord producing object. The DOM specifies which tree * to get the nodes to sort from, the class name specifies what auxillary * class to use to sort the nodes (this class is generated by the Sort * class), and the translet parameter is needed for methods called by * this object. */ public NodeSortRecordFactory(DOM dom, String className, Translet translet, String order[], String type[], String lang[], String caseOrder[]) throws TransletException { try { _dom = dom; _className = className; // This should return a Class definition if using TrAX _class = translet.getAuxiliaryClass(className); // This code is only run when the native API is used if (_class == null) { _class = ObjectFactory.findProviderClass(className, true); } int levels = order.length; int[] iOrder = new int[levels]; int[] iType = new int[levels]; for (int i = 0; i < levels; i++) { if (order[i].length() == DESCENDING) { iOrder[i] = NodeSortRecord.COMPARE_DESCENDING; } if (type[i].length() == NUMBER) { iType[i] = NodeSortRecord.COMPARE_NUMERIC; } } // Old NodeSortRecordFactory constructor had no lang or case_order // arguments. Provide default values in that case for binary // compatibility. String[] emptyStringArray = null; if (lang == null || caseOrder == null) { int numSortKeys = order.length; emptyStringArray = new String[numSortKeys]; // Set up array of zero-length strings as default values // of lang and case_order for (int i = 0; i < numSortKeys; i++) { emptyStringArray[i] = ""; } } if (lang == null) { lang = emptyStringArray; } if (caseOrder == null) { caseOrder = emptyStringArray; } final int length = lang.length; Locale[] locales = new Locale[length]; Collator[] collators = new Collator[length]; for (int i = 0; i< length; i++){ locales[i] = LocaleUtility.langToLocale(lang[i]); collators[i] = Collator.getInstance(locales[i]); } _sortSettings = new SortSettings((AbstractTranslet) translet, iOrder, iType, locales, collators, caseOrder); } catch (ClassNotFoundException e) { throw new TransletException(e); } } /** * Create an instance of a sub-class of NodeSortRecord. The name of this * sub-class is passed to us in the constructor. */ public NodeSortRecord makeNodeSortRecord(int node, int last) throws ExceptionInInitializerError, LinkageError, IllegalAccessException, InstantiationException, SecurityException, TransletException { try { final NodeSortRecord sortRecord; //NodeSortRecord subclasses are generated with a public empty constructor // refer to com.sun.org.apache.xalan.internal.xsltc.compiler.Sort::compileInit sortRecord = (NodeSortRecord)_class.getConstructor().newInstance(); sortRecord.initialize(node, last, _dom, _sortSettings); return sortRecord; } catch (NoSuchMethodException | IllegalArgumentException | InvocationTargetException ex) { throw new InstantiationException(ex.getMessage()); } } public String getClassName() { return _className; } private final void setLang(final String lang[]){ } }
⏎ com/sun/org/apache/xalan/internal/xsltc/dom/NodeSortRecordFactory.java
Or download all of them as a single archive file:
File name: java.xml-17.0.5-src.zip File size: 5047495 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.xml.crypto.jmod - XML Crypto Module
2023-07-17, 57361👍, 1💬
Popular Posts:
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...