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.xml.jmod - XML Module
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module.
JDK 11 XML module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.xml.jmod.
JDK 11 XML module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 XML module source code files are stored in \fyicenter\jdk-11.0.1\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/compiler/util/Util.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.compiler.util; import com.sun.org.apache.bcel.internal.generic.Type; import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants; import com.sun.org.apache.xml.internal.utils.XML11Char; import java.util.StringTokenizer; import jdk.xml.internal.SecuritySupport; /** * @author Jacek Ambroziak * @author Santiago Pericas-Geertsen * @LastModified: Sep 2017 */ public final class Util { private static char filesep; static { String temp = SecuritySupport.getSystemProperty("file.separator", "/"); filesep = temp.charAt(0); } public static String noExtName(String name) { final int index = name.lastIndexOf('.'); return name.substring(0, index >= 0 ? index : name.length()); } /** * Search for both slashes in order to support URLs and * files. */ public static String baseName(String name) { int index = name.lastIndexOf('\\'); if (index < 0) { index = name.lastIndexOf('/'); } if (index >= 0) return name.substring(index + 1); else { int lastColonIndex = name.lastIndexOf(':'); if (lastColonIndex > 0) return name.substring(lastColonIndex + 1); else return name; } } /** * Search for both slashes in order to support URLs and * files. */ public static String pathName(String name) { int index = name.lastIndexOf('/'); if (index < 0) { index = name.lastIndexOf('\\'); } return name.substring(0, index + 1); } /** * Replace all illegal Java chars by '_'. */ public static String toJavaName(String name) { if (name.length() > 0) { final StringBuffer result = new StringBuffer(); char ch = name.charAt(0); result.append(Character.isJavaIdentifierStart(ch) ? ch : '_'); final int n = name.length(); for (int i = 1; i < n; i++) { ch = name.charAt(i); result.append(Character.isJavaIdentifierPart(ch) ? ch : '_'); } return result.toString(); } return name; } public static Type getJCRefType(String signature) { return Type.getType(signature); } public static String internalName(String cname) { return cname.replace('.', filesep); } public static void println(String s) { System.out.println(s); } public static void println(char ch) { System.out.println(ch); } public static void TRACE1() { System.out.println("TRACE1"); } public static void TRACE2() { System.out.println("TRACE2"); } public static void TRACE3() { System.out.println("TRACE3"); } /** * Replace a certain character in a string with a new substring. */ public static String replace(String base, char ch, String str) { return (base.indexOf(ch) < 0) ? base : replace(base, String.valueOf(ch), new String[] { str }); } public static String replace(String base, String delim, String[] str) { final int len = base.length(); final StringBuffer result = new StringBuffer(); for (int i = 0; i < len; i++) { final char ch = base.charAt(i); final int k = delim.indexOf(ch); if (k >= 0) { result.append(str[k]); } else { result.append(ch); } } return result.toString(); } /** * Replace occurances of '.', '-', '/' and ':' */ public static String escape(String input) { return replace(input, ".-/:", new String[] { "$dot$", "$dash$", "$slash$", "$colon$" }); } public static String getLocalName(String qname) { final int index = qname.lastIndexOf(":"); return (index > 0) ? qname.substring(index + 1) : qname; } public static String getPrefix(String qname) { final int index = qname.lastIndexOf(":"); return (index > 0) ? qname.substring(0, index) : Constants.EMPTYSTRING; } /** * Checks if the string is a literal (i.e. not an AVT) or not. */ public static boolean isLiteral(String str) { final int length = str.length(); for (int i = 0; i < length - 1; i++) { if (str.charAt(i) == '{' && str.charAt(i + 1) != '{') { return false; } } return true; } /** * Checks if the string is valid list of qnames */ public static boolean isValidQNames(String str) { if ((str != null) && (!str.equals(Constants.EMPTYSTRING))) { final StringTokenizer tokens = new StringTokenizer(str); while (tokens.hasMoreTokens()) { if (!XML11Char.isXML11ValidQName(tokens.nextToken())) { return false; } } } return true; } }
⏎ com/sun/org/apache/xalan/internal/xsltc/compiler/util/Util.java
Or download all of them as a single archive file:
File name: java.xml-11.0.1-src.zip File size: 4876106 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.xml.crypto.jmod - XML Crypto Module
2020-08-25, 175158👍, 0💬
Popular Posts:
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
What Is XMLBeans xbean.jar 2.6.0? XMLBeans xbean.jar 2.6.0 is the JAR file for Apache XMLBeans 2.6.0...