< prev index next >

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

Print this page


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


  55 import jdk.xml.internal.JdkXmlUtils;
  56 import jdk.xml.internal.SecuritySupport;
  57 
  58 /**
  59  *
  60  * This class is responsible for scanning the structure and content
  61  * of document fragments.
  62  *
  63  * This class has been modified as per the new design which is more suited to
  64  * efficiently build pull parser. Lot of improvements have been done and
  65  * the code has been added to support stax functionality/features.
  66  *
  67  * @author Neeraj Bajaj SUN Microsystems
  68  * @author K.Venugopal SUN Microsystems
  69  * @author Glenn Marcy, IBM
  70  * @author Andy Clark, IBM
  71  * @author Arnaud  Le Hors, IBM
  72  * @author Eric Ye, IBM
  73  * @author Sunitha Reddy, SUN Microsystems
  74  *

  75  */
  76 public class XMLDocumentFragmentScannerImpl
  77         extends XMLScanner
  78         implements XMLDocumentScanner, XMLComponent, XMLEntityHandler, XMLBufferListener {
  79 
  80     //
  81     // Constants
  82     //
  83 
  84     protected int fElementAttributeLimit, fXMLNameLimit;
  85 
  86     /** External subset resolver. **/
  87     protected ExternalSubsetResolver fExternalSubsetResolver;
  88 
  89     // scanner states
  90 
  91     //XXX this should be divided into more states.
  92     /** Scanner state: start of markup. */
  93     protected static final int SCANNER_STATE_START_OF_MARKUP = 21;
  94 


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

   3  */
   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;


  54 import jdk.xml.internal.JdkXmlUtils;
  55 import jdk.xml.internal.SecuritySupport;
  56 
  57 /**
  58  *
  59  * This class is responsible for scanning the structure and content
  60  * of document fragments.
  61  *
  62  * This class has been modified as per the new design which is more suited to
  63  * efficiently build pull parser. Lot of improvements have been done and
  64  * the code has been added to support stax functionality/features.
  65  *
  66  * @author Neeraj Bajaj SUN Microsystems
  67  * @author K.Venugopal SUN Microsystems
  68  * @author Glenn Marcy, IBM
  69  * @author Andy Clark, IBM
  70  * @author Arnaud  Le Hors, IBM
  71  * @author Eric Ye, IBM
  72  * @author Sunitha Reddy, SUN Microsystems
  73  *
  74  * @LastModified: Sep 2017
  75  */
  76 public class XMLDocumentFragmentScannerImpl
  77         extends XMLScanner
  78         implements XMLDocumentScanner, XMLComponent, XMLEntityHandler, XMLBufferListener {
  79 
  80     //
  81     // Constants
  82     //
  83 
  84     protected int fElementAttributeLimit, fXMLNameLimit;
  85 
  86     /** External subset resolver. **/
  87     protected ExternalSubsetResolver fExternalSubsetResolver;
  88 
  89     // scanner states
  90 
  91     //XXX this should be divided into more states.
  92     /** Scanner state: start of markup. */
  93     protected static final int SCANNER_STATE_START_OF_MARKUP = 21;
  94 


< prev index next >