< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java

Print this page


   1 /*
   2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 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.impl;
  23 


  51  * scanning the XML document structure and content as well as the DTD
  52  * structure and content. Both XMLDocumentScanner and XMLDTDScanner inherit
  53  * from this base class.
  54  *
  55  * <p>
  56  * This component requires the following features and properties from the
  57  * component manager that uses it:
  58  * <ul>
  59  *  <li>http://xml.org/sax/features/validation</li>
  60  *  <li>http://apache.org/xml/features/scanner/notify-char-refs</li>
  61  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  62  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  63  *  <li>http://apache.org/xml/properties/internal/entity-manager</li>
  64  * </ul>
  65  *
  66  * @author Andy Clark, IBM
  67  * @author Arnaud  Le Hors, IBM
  68  * @author Eric Ye, IBM
  69  * @author K.Venugopal SUN Microsystems
  70  * @author Sunitha Reddy, SUN Microsystems

  71  */
  72 public abstract class XMLScanner
  73         implements XMLComponent {
  74 
  75     //
  76     // Constants
  77     //
  78 
  79     // feature identifiers
  80 
  81     /** Feature identifier: namespaces. */
  82     protected static final String NAMESPACES =
  83             Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  84 
  85     /** Feature identifier: validation. */
  86     protected static final String VALIDATION =
  87             Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  88 
  89     /** Feature identifier: notify character references. */
  90     protected static final String NOTIFY_CHAR_REFS =


   1 /*
   2  * Copyright (c) 2003, 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.impl;
  22 


  50  * scanning the XML document structure and content as well as the DTD
  51  * structure and content. Both XMLDocumentScanner and XMLDTDScanner inherit
  52  * from this base class.
  53  *
  54  * <p>
  55  * This component requires the following features and properties from the
  56  * component manager that uses it:
  57  * <ul>
  58  *  <li>http://xml.org/sax/features/validation</li>
  59  *  <li>http://apache.org/xml/features/scanner/notify-char-refs</li>
  60  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  61  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  62  *  <li>http://apache.org/xml/properties/internal/entity-manager</li>
  63  * </ul>
  64  *
  65  * @author Andy Clark, IBM
  66  * @author Arnaud  Le Hors, IBM
  67  * @author Eric Ye, IBM
  68  * @author K.Venugopal SUN Microsystems
  69  * @author Sunitha Reddy, SUN Microsystems
  70  * @LastModified: Nov 2017
  71  */
  72 public abstract class XMLScanner
  73         implements XMLComponent {
  74 
  75     //
  76     // Constants
  77     //
  78 
  79     // feature identifiers
  80 
  81     /** Feature identifier: namespaces. */
  82     protected static final String NAMESPACES =
  83             Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  84 
  85     /** Feature identifier: validation. */
  86     protected static final String VALIDATION =
  87             Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  88 
  89     /** Feature identifier: notify character references. */
  90     protected static final String NOTIFY_CHAR_REFS =


< prev index next >