< prev index next >

src/java.xml/share/classes/org/xml/sax/helpers/ParserFactory.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -68,20 +68,21 @@
      * Create a new SAX parser using the `org.xml.sax.parser' system property.
      *
      * <p>The named class must exist and must implement the
      * {@link org.xml.sax.Parser Parser} interface.</p>
      *
-     * @exception java.lang.NullPointerException There is no value
+     * @return a new SAX parser
+     * @throws java.lang.NullPointerException There is no value
      *            for the `org.xml.sax.parser' system property.
-     * @exception java.lang.ClassNotFoundException The SAX parser
+     * @throws java.lang.ClassNotFoundException The SAX parser
      *            class was not found (check your CLASSPATH).
-     * @exception IllegalAccessException The SAX parser class was
+     * @throws IllegalAccessException The SAX parser class was
      *            found, but you do not have permission to load
      *            it.
-     * @exception InstantiationException The SAX parser class was
+     * @throws InstantiationException The SAX parser class was
      *            found but could not be instantiated.
-     * @exception java.lang.ClassCastException The SAX parser class
+     * @throws java.lang.ClassCastException The SAX parser class
      *            was found and instantiated, but does not implement
      *            org.xml.sax.Parser.
      * @see #makeParser(java.lang.String)
      * @see org.xml.sax.Parser
      */

@@ -107,18 +108,19 @@
      * <p>The named class must exist and must implement the
      * {@link org.xml.sax.Parser Parser} interface.</p>
      *
      * @param className A string containing the name of the
      *                  SAX parser class.
-     * @exception java.lang.ClassNotFoundException The SAX parser
+     * @return a new SAX parser
+     * @throws java.lang.ClassNotFoundException The SAX parser
      *            class was not found (check your CLASSPATH).
-     * @exception IllegalAccessException The SAX parser class was
+     * @throws IllegalAccessException The SAX parser class was
      *            found, but you do not have permission to load
      *            it.
-     * @exception InstantiationException The SAX parser class was
+     * @throws InstantiationException The SAX parser class was
      *            found but could not be instantiated.
-     * @exception java.lang.ClassCastException The SAX parser class
+     * @throws java.lang.ClassCastException The SAX parser class
      *            was found and instantiated, but does not implement
      *            org.xml.sax.Parser.
      * @see #makeParser()
      * @see org.xml.sax.Parser
      */
< prev index next >