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/trax/SAX2StAXBaseWriter.java
/* * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. * @LastModified: Oct 2017 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.org.apache.xalan.internal.xsltc.trax; import java.util.ArrayList; import java.util.List; import javax.xml.stream.Location; import javax.xml.stream.XMLReporter; import javax.xml.stream.XMLStreamException; import org.xml.sax.Attributes; import org.xml.sax.Locator; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.ext.LexicalHandler; import org.xml.sax.helpers.DefaultHandler; public abstract class SAX2StAXBaseWriter extends DefaultHandler implements LexicalHandler { protected boolean isCDATA; protected StringBuffer CDATABuffer; protected List<String> namespaces; protected Locator docLocator; protected XMLReporter reporter; public SAX2StAXBaseWriter() { } public SAX2StAXBaseWriter(XMLReporter reporter) { this.reporter = reporter; } public void setXMLReporter(XMLReporter reporter) { this.reporter = reporter; } public void setDocumentLocator(Locator locator) { this.docLocator = locator; } public Location getCurrentLocation() { if (docLocator != null) { return new SAXLocation(docLocator); } else { return null; } } public void error(SAXParseException e) throws SAXException { reportException("ERROR", e); } public void fatalError(SAXParseException e) throws SAXException { reportException("FATAL", e); } public void warning(SAXParseException e) throws SAXException { reportException("WARNING", e); } public void startDocument() throws SAXException { namespaces = new ArrayList<>(2); } public void endDocument() throws SAXException { namespaces = null; } public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { namespaces = null; } public void endElement(String uri, String localName, String qName) throws SAXException { namespaces = null; } public void startPrefixMapping(String prefix, String uri) throws SAXException { if (prefix == null) { prefix = ""; } else if (prefix.equals("xml")) { return; } if (namespaces == null) { namespaces = new ArrayList<>(2); } namespaces.add(prefix); namespaces.add(uri); } public void endPrefixMapping(String prefix) throws SAXException { } public void startCDATA() throws SAXException { isCDATA = true; if (CDATABuffer == null) { CDATABuffer = new StringBuffer(); } else { CDATABuffer.setLength(0); } } public void characters(char[] ch, int start, int length) throws SAXException { if (isCDATA) { CDATABuffer.append(ch, start, length); } } public void endCDATA() throws SAXException { isCDATA = false; CDATABuffer.setLength(0); } public void comment(char[] ch, int start, int length) throws SAXException { } public void endDTD() throws SAXException { } public void endEntity(String name) throws SAXException { } public void startDTD(String name, String publicId, String systemId) throws SAXException { } public void startEntity(String name) throws SAXException { } /** * Used to report a {@link SAXException}to the {@link XMLReporter} * registered with this handler. */ protected void reportException(String type, SAXException e) throws SAXException { if (reporter != null) { try { reporter.report(e.getMessage(), type, e, getCurrentLocation()); } catch (XMLStreamException e1) { throw new SAXException(e1); } } } /** * Parses an XML qualified name, and places the resulting prefix and local * name in the provided String array. * * @param qName The qualified name to parse. * @param results An array where parse results will be placed. The prefix * will be placed at <code>results[0]</code>, and the local * part at <code>results[1]</code> */ public static final void parseQName(String qName, String[] results) { String prefix, local; int idx = qName.indexOf(':'); if (idx >= 0) { prefix = qName.substring(0, idx); local = qName.substring(idx + 1); } else { prefix = ""; local = qName; } results[0] = prefix; results[1] = local; } /** * {@Link Location}implementation used to expose details from a SAX * {@link Locator}. * * @author christian */ private static final class SAXLocation implements Location { private int lineNumber; private int columnNumber; private String publicId; private String systemId; private SAXLocation(Locator locator) { lineNumber = locator.getLineNumber(); columnNumber = locator.getColumnNumber(); publicId = locator.getPublicId(); systemId = locator.getSystemId(); } public int getLineNumber() { return lineNumber; } public int getColumnNumber() { return columnNumber; } public int getCharacterOffset() { return -1; } public String getPublicId() { return publicId; } public String getSystemId() { return systemId; } } }
⏎ com/sun/org/apache/xalan/internal/xsltc/trax/SAX2StAXBaseWriter.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, 175295👍, 0💬
Popular Posts:
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
What Is jniwrap.jar in JNIWrapper 3.7.1? winpack.jar in JNIWrapper 3.7.1 is an add-on JAR file for J...