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:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/org/apache/xerces/internal/jaxp/validation/ValidatorImpl.java
/* * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2005 The Apache Software Foundation. * * Licensed 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.xerces.internal.jaxp.validation; import java.io.IOException; import javax.xml.XMLConstants; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.sax.SAXSource; import javax.xml.transform.stax.StAXResult; import javax.xml.transform.stax.StAXSource; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Validator; import com.sun.org.apache.xerces.internal.impl.Constants; import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter; import com.sun.org.apache.xerces.internal.util.Status; import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; import com.sun.org.apache.xerces.internal.xs.AttributePSVI; import com.sun.org.apache.xerces.internal.xs.ElementPSVI; import com.sun.org.apache.xerces.internal.xs.PSVIProvider; import org.w3c.dom.ls.LSResourceResolver; import org.xml.sax.ErrorHandler; import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; /** * <p>Implementation of Validator for W3C XML Schemas.</p> * * @author <a href="mailto:Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a> * @author Michael Glavassevich, IBM * @author <a href="mailto:Sunitha.Reddy@Sun.com">Sunitha Reddy</a> * @version $Id: ValidatorImpl.java,v 1.10 2010-11-01 04:40:08 joehw Exp $ */ final class ValidatorImpl extends Validator implements PSVIProvider { // // Data // /** Component manager. **/ private XMLSchemaValidatorComponentManager fComponentManager; /** SAX validator helper. **/ private ValidatorHandlerImpl fSAXValidatorHelper; /** DOM validator helper. **/ private DOMValidatorHelper fDOMValidatorHelper; /** Stream validator helper. **/ private StreamValidatorHelper fStreamValidatorHelper; /** StAX validator helper. **/ private StAXValidatorHelper fStaxValidatorHelper; /** Flag for tracking whether features/properties changed since last reset. */ private boolean fConfigurationChanged = false; /** Flag for tracking whether the error handler changed since last reset. */ private boolean fErrorHandlerChanged = false; /** Flag for tracking whether the resource resolver changed since last reset. */ private boolean fResourceResolverChanged = false; /** Support current-element-node property */ private static final String CURRENT_ELEMENT_NODE = Constants.XERCES_PROPERTY_PREFIX + Constants.CURRENT_ELEMENT_NODE_PROPERTY; public ValidatorImpl(XSGrammarPoolContainer grammarContainer) { fComponentManager = new XMLSchemaValidatorComponentManager(grammarContainer); setErrorHandler(null); setResourceResolver(null); } public void validate(Source source, Result result) throws SAXException, IOException { if (source instanceof SAXSource) { // Hand off to SAX validator helper. if (fSAXValidatorHelper == null) { fSAXValidatorHelper = new ValidatorHandlerImpl(fComponentManager); } fSAXValidatorHelper.validate(source, result); } else if (source instanceof DOMSource) { // Hand off to DOM validator helper. if (fDOMValidatorHelper == null) { fDOMValidatorHelper = new DOMValidatorHelper(fComponentManager); } fDOMValidatorHelper.validate(source, result); } else if (source instanceof StreamSource) { // Hand off to stream validator helper. if (fStreamValidatorHelper == null) { fStreamValidatorHelper = new StreamValidatorHelper(fComponentManager); } fStreamValidatorHelper.validate(source, result); } else if (source instanceof StAXSource) { // Hand off to stax validator helper. if (fStaxValidatorHelper == null) { fStaxValidatorHelper = new StAXValidatorHelper(fComponentManager); } fStaxValidatorHelper.validate(source, result); } // Source parameter cannot be null. else if (source == null) { throw new NullPointerException(JAXPValidationMessageFormatter.formatMessage(fComponentManager.getLocale(), "SourceParameterNull", null)); } // Source parameter must be a SAXSource, DOMSource or StreamSource else { throw new IllegalArgumentException(JAXPValidationMessageFormatter.formatMessage(fComponentManager.getLocale(), "SourceNotAccepted", new Object [] {source.getClass().getName()})); } } public void setErrorHandler(ErrorHandler errorHandler) { fErrorHandlerChanged = (errorHandler != null); fComponentManager.setErrorHandler(errorHandler); } public ErrorHandler getErrorHandler() { return fComponentManager.getErrorHandler(); } public void setResourceResolver(LSResourceResolver resourceResolver) { fResourceResolverChanged = (resourceResolver != null); fComponentManager.setResourceResolver(resourceResolver); } public LSResourceResolver getResourceResolver() { return fComponentManager.getResourceResolver(); } public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException(); } try { return fComponentManager.getFeature(name); } catch (XMLConfigurationException e) { final String identifier = e.getIdentifier(); final String key = e.getType() == Status.NOT_RECOGNIZED ? "feature-not-recognized" : "feature-not-supported"; throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fComponentManager.getLocale(), key, new Object [] {identifier})); } } public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException(); } try { fComponentManager.setFeature(name, value); } catch (XMLConfigurationException e) { final String identifier = e.getIdentifier(); final String key; if (e.getType() == Status.NOT_ALLOWED) { //for now, the identifier can only be (XMLConstants.FEATURE_SECURE_PROCESSING) throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fComponentManager.getLocale(), "jaxp-secureprocessing-feature", null)); } else if (e.getType() == Status.NOT_RECOGNIZED) { key = "feature-not-recognized"; } else { key = "feature-not-supported"; } throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fComponentManager.getLocale(), key, new Object [] {identifier})); } fConfigurationChanged = true; } public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException(); } //Support current-element-node; return current node if DOMSource is used. if (CURRENT_ELEMENT_NODE.equals(name)) { return (fDOMValidatorHelper != null) ? fDOMValidatorHelper.getCurrentElement() : null; } try { return fComponentManager.getProperty(name); } catch (XMLConfigurationException e) { final String identifier = e.getIdentifier(); final String key = e.getType() == Status.NOT_RECOGNIZED ? "property-not-recognized" : "property-not-supported"; throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fComponentManager.getLocale(), key, new Object [] {identifier})); } } public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException(); } try { fComponentManager.setProperty(name, object); } catch (XMLConfigurationException e) { final String identifier = e.getIdentifier(); final String key = e.getType() == Status.NOT_RECOGNIZED ? "property-not-recognized" : "property-not-supported"; throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fComponentManager.getLocale(), key, new Object [] {identifier})); } fConfigurationChanged = true; } public void reset() { // avoid resetting features and properties if the state the validator // is currently in, is the same as it will be after reset. if (fConfigurationChanged) { fComponentManager.restoreInitialState(); setErrorHandler(null); setResourceResolver(null); fConfigurationChanged = false; fErrorHandlerChanged = false; fResourceResolverChanged = false; } else { if (fErrorHandlerChanged) { setErrorHandler(null); fErrorHandlerChanged = false; } if (fResourceResolverChanged) { setResourceResolver(null); fResourceResolverChanged = false; } } } /* * PSVIProvider methods */ public ElementPSVI getElementPSVI() { return (fSAXValidatorHelper != null) ? fSAXValidatorHelper.getElementPSVI() : null; } public AttributePSVI getAttributePSVI(int index) { return (fSAXValidatorHelper != null) ? fSAXValidatorHelper.getAttributePSVI(index) : null; } public AttributePSVI getAttributePSVIByName(String uri, String localname) { return (fSAXValidatorHelper != null) ? fSAXValidatorHelper.getAttributePSVIByName(uri, localname) : null; } } // ValidatorImpl
⏎ com/sun/org/apache/xerces/internal/jaxp/validation/ValidatorImpl.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 255294👍, 3💬
Popular Posts:
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...