src/java.xml/share/classes/com/sun/org/apache/xerces/internal/parsers/AbstractSAXParser.java
changeset 58230 0ff1aeedc338
parent 48992 b8cd2fcc98e2
equal deleted inserted replaced
58229:722a19a45994 58230:0ff1aeedc338
     1 /*
     1 /*
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
     3  */
     3  */
     4 /*
     4 /*
     5  * Licensed to the Apache Software Foundation (ASF) under one or more
     5  * Licensed to the Apache Software Foundation (ASF) under one or more
     6  * contributor license agreements.  See the NOTICE file distributed with
     6  * contributor license agreements.  See the NOTICE file distributed with
     7  * this work for additional information regarding copyright ownership.
     7  * this work for additional information regarding copyright ownership.
    76  * defined in the parser configuration.
    76  * defined in the parser configuration.
    77  *
    77  *
    78  * @author Arnaud Le Hors, IBM
    78  * @author Arnaud Le Hors, IBM
    79  * @author Andy Clark, IBM
    79  * @author Andy Clark, IBM
    80  *
    80  *
       
    81  * @LastModified: Sep 2019
    81  */
    82  */
    82 @SuppressWarnings("deprecation")
    83 @SuppressWarnings("deprecation")
    83 public abstract class AbstractSAXParser
    84 public abstract class AbstractSAXParser
    84     extends AbstractXMLDocumentParser
    85     extends AbstractXMLDocumentParser
    85     implements PSVIProvider, // PSVI
    86     implements PSVIProvider, // PSVI
   316         throws XNIException {
   317         throws XNIException {
   317         // the version need only be set once; if
   318         // the version need only be set once; if
   318         // document's XML 1.0|1.1, that's how it'll stay
   319         // document's XML 1.0|1.1, that's how it'll stay
   319         fVersion = version;
   320         fVersion = version;
   320         fStandalone = "yes".equals(standalone);
   321         fStandalone = "yes".equals(standalone);
       
   322         if (fContentHandler != null) {
       
   323             try {
       
   324                 fContentHandler.declaration(version, encoding, standalone);
       
   325             } catch (SAXException e) {
       
   326                 throw new XNIException(e);
       
   327             }
       
   328         }
   321     } // xmlDecl(String,String,String)
   329     } // xmlDecl(String,String,String)
   322 
   330 
   323     /**
   331     /**
   324      * Notifies of the presence of the DOCTYPE line in the document.
   332      * Notifies of the presence of the DOCTYPE line in the document.
   325      *
   333      *