< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.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;


  48 
  49 /**
  50  * This class is responsible for scanning XML document structure
  51  * and content.
  52  *
  53  * This class has been modified as per the new design which is more suited to
  54  * efficiently build pull parser. Lot of improvements have been done and
  55  * the code has been added to support stax functionality/features.
  56  *
  57  * @author Neeraj Bajaj, Sun Microsystems
  58  * @author K.Venugopal, Sun Microsystems
  59  * @author Glenn Marcy, IBM
  60  * @author Andy Clark, IBM
  61  * @author Arnaud  Le Hors, IBM
  62  * @author Eric Ye, IBM
  63  * @author Sunitha Reddy, Sun Microsystems
  64  *
  65  * Refer to the table in unit-test javax.xml.stream.XMLStreamReaderTest.SupportDTD for changes
  66  * related to property SupportDTD.
  67  * @author Joe Wang, Sun Microsystems

  68  */
  69 public class XMLDocumentScannerImpl
  70         extends XMLDocumentFragmentScannerImpl{
  71 
  72     //
  73     // Constants
  74     //
  75 
  76     // scanner states
  77 
  78     /** Scanner state: XML declaration. */
  79     protected static final int SCANNER_STATE_XML_DECL = 42;
  80 
  81     /** Scanner state: prolog. */
  82     protected static final int SCANNER_STATE_PROLOG = 43;
  83 
  84     /** Scanner state: trailing misc. */
  85     protected static final int SCANNER_STATE_TRAILING_MISC = 44;
  86 
  87     /** Scanner state: DTD internal declarations. */


   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;


  47 
  48 /**
  49  * This class is responsible for scanning XML document structure
  50  * and content.
  51  *
  52  * This class has been modified as per the new design which is more suited to
  53  * efficiently build pull parser. Lot of improvements have been done and
  54  * the code has been added to support stax functionality/features.
  55  *
  56  * @author Neeraj Bajaj, Sun Microsystems
  57  * @author K.Venugopal, Sun Microsystems
  58  * @author Glenn Marcy, IBM
  59  * @author Andy Clark, IBM
  60  * @author Arnaud  Le Hors, IBM
  61  * @author Eric Ye, IBM
  62  * @author Sunitha Reddy, Sun Microsystems
  63  *
  64  * Refer to the table in unit-test javax.xml.stream.XMLStreamReaderTest.SupportDTD for changes
  65  * related to property SupportDTD.
  66  * @author Joe Wang, Sun Microsystems
  67  * @LastModified: Sep 2017
  68  */
  69 public class XMLDocumentScannerImpl
  70         extends XMLDocumentFragmentScannerImpl{
  71 
  72     //
  73     // Constants
  74     //
  75 
  76     // scanner states
  77 
  78     /** Scanner state: XML declaration. */
  79     protected static final int SCANNER_STATE_XML_DECL = 42;
  80 
  81     /** Scanner state: prolog. */
  82     protected static final int SCANNER_STATE_PROLOG = 43;
  83 
  84     /** Scanner state: trailing misc. */
  85     protected static final int SCANNER_STATE_TRAILING_MISC = 44;
  86 
  87     /** Scanner state: DTD internal declarations. */


< prev index next >