--- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java Mon Nov 28 09:20:13 2016 +0100
+++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java Tue Nov 29 13:19:23 2016 +0000
@@ -27,6 +27,7 @@
*/
package javax.xml.stream;
+import com.sun.xml.internal.stream.events.XMLEventFactoryImpl;
import java.util.Iterator;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;
@@ -54,6 +55,19 @@
/**
+ * Creates a new instance of the {@code XMLEventFactory} builtin
+ * system-default implementation.
+ *
+ * @return A new instance of the {@code XMLEventFactory} builtin
+ * system-default implementation.
+ *
+ * @since 9
+ */
+ public static XMLEventFactory newDefaultFactory() {
+ return new XMLEventFactoryImpl();
+ }
+
+ /**
* Creates a new instance of the factory in exactly the same manner as the
* {@link #newFactory()} method.
* @throws FactoryConfigurationError if an instance of this factory cannot be loaded
@@ -108,7 +122,8 @@
* </li>
* <li>
* <p>
- * Otherwise, the system-default implementation is returned.
+ * Otherwise, the {@linkplain #newDefaultFactory() system-default}
+ * implementation is returned.
* </li>
* </ul>
* <p>