< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/SAXParserImpl.java

Print this page


   1 /*
   2  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.jaxp;
  23 


  45 import javax.xml.XMLConstants;
  46 import javax.xml.validation.Schema;
  47 import org.xml.sax.EntityResolver;
  48 import org.xml.sax.ErrorHandler;
  49 import org.xml.sax.HandlerBase;
  50 import org.xml.sax.InputSource;
  51 import org.xml.sax.Parser;
  52 import org.xml.sax.SAXException;
  53 import org.xml.sax.SAXNotRecognizedException;
  54 import org.xml.sax.SAXNotSupportedException;
  55 import org.xml.sax.XMLReader;
  56 import org.xml.sax.helpers.DefaultHandler;
  57 
  58 /**
  59  * This is the implementation specific class for the
  60  * <code>javax.xml.parsers.SAXParser</code>.
  61  *
  62  * @author Rajiv Mordani
  63  * @author Edwin Goei
  64  *

  65  */
  66 @SuppressWarnings("deprecation")
  67 public class SAXParserImpl extends javax.xml.parsers.SAXParser
  68     implements JAXPConstants, PSVIProvider {
  69 
  70     /** Feature identifier: namespaces. */
  71     private static final String NAMESPACES_FEATURE =
  72         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  73 
  74     /** Feature identifier: namespace prefixes. */
  75     private static final String NAMESPACE_PREFIXES_FEATURE =
  76         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACE_PREFIXES_FEATURE;
  77 
  78     /** Feature identifier: validation. */
  79     private static final String VALIDATION_FEATURE =
  80         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  81 
  82     /** Feature identifier: XML Schema validation */
  83     private static final String XMLSCHEMA_VALIDATION_FEATURE =
  84         Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;


   1 /*
   2  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.jaxp;
  22 


  44 import javax.xml.XMLConstants;
  45 import javax.xml.validation.Schema;
  46 import org.xml.sax.EntityResolver;
  47 import org.xml.sax.ErrorHandler;
  48 import org.xml.sax.HandlerBase;
  49 import org.xml.sax.InputSource;
  50 import org.xml.sax.Parser;
  51 import org.xml.sax.SAXException;
  52 import org.xml.sax.SAXNotRecognizedException;
  53 import org.xml.sax.SAXNotSupportedException;
  54 import org.xml.sax.XMLReader;
  55 import org.xml.sax.helpers.DefaultHandler;
  56 
  57 /**
  58  * This is the implementation specific class for the
  59  * <code>javax.xml.parsers.SAXParser</code>.
  60  *
  61  * @author Rajiv Mordani
  62  * @author Edwin Goei
  63  *
  64  * @LastModified: Oct 2017
  65  */
  66 @SuppressWarnings("deprecation")
  67 public class SAXParserImpl extends javax.xml.parsers.SAXParser
  68     implements JAXPConstants, PSVIProvider {
  69 
  70     /** Feature identifier: namespaces. */
  71     private static final String NAMESPACES_FEATURE =
  72         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  73 
  74     /** Feature identifier: namespace prefixes. */
  75     private static final String NAMESPACE_PREFIXES_FEATURE =
  76         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACE_PREFIXES_FEATURE;
  77 
  78     /** Feature identifier: validation. */
  79     private static final String VALIDATION_FEATURE =
  80         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  81 
  82     /** Feature identifier: XML Schema validation */
  83     private static final String XMLSCHEMA_VALIDATION_FEATURE =
  84         Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;


< prev index next >