--- old/src/java.xml/share/classes/org/xml/sax/ContentHandler.java 2019-09-20 04:54:37.242609111 +0000 +++ new/src/java.xml/share/classes/org/xml/sax/ContentHandler.java 2019-09-20 04:54:36.817598689 +0000 @@ -23,25 +23,12 @@ * questions. */ -// ContentHandler.java - handle main document content. -// http://www.saxproject.org -// Written by David Megginson -// NO WARRANTY! This class is in the public domain. -// $Id: ContentHandler.java,v 1.2 2004/11/03 22:44:51 jsuttor Exp $ - package org.xml.sax; /** * Receive notification of the logical content of a document. * - *
- * This module, both source code and documentation, is in the - * Public Domain, and comes with NO WARRANTY. - * See http://www.saxproject.org - * for further information. - *
- * *

This is the main interface that most SAX applications * implement: if the application needs to be informed of basic parsing * events, it implements this interface and registers an instance with @@ -128,20 +115,20 @@ /** * Receives notification of the XML declaration. - * + * * @implSpec * The default implementation in the SAX API is to do nothing. - * + * * @param version the version string as in the input document, null if not * specified * @param encoding the encoding string as in the input document, null if not * specified - * @param standalone the standalone string as in the input document, null if + * @param standalone the standalone string as in the input document, null if * not specified - * + * * @throws SAXException if the application wants to report an error or * interrupt the parsing process - * + * * @since 14 */ default void declaration(String version, String encoding, String standalone) @@ -149,18 +136,18 @@ { //no op } - + /** * Receive notification of the end of a document. * *

* This method is invoked by the parser to signal it has reached the end of - * the document after successfully completing the parsing process. + * the document after successfully completing the parsing process. * After the event, the parser will return the control to the application. - * - * @apiNote In case of a fatal error, the parser may choose to stop the + * + * @apiNote In case of a fatal error, the parser may choose to stop the * parsing process with a {@link SAXException}, in which case, this method - * will never be called. Refer to + * will never be called. Refer to * {@link ErrorHandler#fatalError(org.xml.sax.SAXParseException)}. * * @throws org.xml.sax.SAXException any SAX exception, possibly