--- old/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java 2015-04-21 18:33:59.140094842 +0400 +++ new/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java 2015-04-21 18:33:59.048094842 +0400 @@ -28,13 +28,13 @@ /** *
A TransformerFactory instance can be used to create * {@link javax.xml.transform.Transformer} and - * {@link javax.xml.transform.Templates} objects.
+ * {@link javax.xml.transform.Templates} objects. * *The system property that determines which Factory implementation
- * to create is named "javax.xml.transform.TransformerFactory"
.
+ * to create is named {@code "javax.xml.transform.TransformerFactory"}.
* This property names a concrete subclass of the
* {@code TransformerFactory} abstract class. If the property is not
- * defined, a platform default is be used.
* Obtain a new instance of a {@code TransformerFactory}. * This static method creates a new factory instance. *
* This method uses the following ordered lookup procedure to determine - * the {@code TransformerFactory} implementation class to - * load: - *
+ * the {@code TransformerFactory} implementation class to load: *
Obtain a new instance of a {@code TransformerFactory} from factory class name. + * Obtain a new instance of a {@code TransformerFactory} from factory class name. * This function is useful when there are multiple providers in the classpath. * It gives more control to the application as it can specify which provider - * should be loaded.
+ * should be loaded. * *Once an application has obtained a reference to a * {@code TransformerFactory} it can use the factory to configure - * and obtain transformer instances.
+ * and obtain transformer instances. * *Setting the jaxp.debug
system property will cause
+ *
Setting the {@code jaxp.debug} system property will cause
* this method to print a lot of debug messages
- * to System.err
about what it is doing and where it is looking at.
If you have problems try:
+ *If you have problems try: *
* java -Djaxp.debug=1 YourProgram .... ** * @param factoryClassName fully qualified factory class name that provides implementation of {@code javax.xml.transform.TransformerFactory}. * - * @param classLoader
ClassLoader
used to load the factory class. If null
- * current Thread
's context classLoader is used to load the factory class.
+ * @param classLoader {@code ClassLoader} used to load the factory class. If {@code null}
+ * current {@code Thread}'s context classLoader is used to load the factory class.
*
* @return new TransformerFactory instance, never null.
*
* @throws TransformerFactoryConfigurationError
- * if factoryClassName
is null
, or
+ * if {@code factoryClassName} is {@code null}, or
* the factory class cannot be loaded, instantiated.
*
* @see #newInstance()
@@ -160,29 +157,29 @@
factoryClassName, classLoader, false, false);
}
/**
- * Process the Source
into a Transformer
- * Object
. The Source
is an XSLT document that
+ * Process the {@code Source} into a {@code Transformer}
+ * {@code Object}. The {@code Source} is an XSLT document that
* conforms to
* XSL Transformations (XSLT) Version 1.0. Care must
- * be taken not to use this Transformer
in multiple
- * Thread
s running concurrently.
- * Different TransformerFactories
can be used concurrently by
- * different Thread
s.
Source
of XSLT document used to create
- * Transformer
.
- * Examples of XML Source
s include
+ * be taken not to use this {@code Transformer} in multiple
+ * {@code Thread}s running concurrently.
+ * Different {@code TransformerFactories} can be used concurrently by
+ * different {@code Thread}s.
+ *
+ * @param source {@code Source } of XSLT document used to create
+ * {@code Transformer}.
+ * Examples of XML {@code Source}s include
* {@link javax.xml.transform.dom.DOMSource DOMSource},
* {@link javax.xml.transform.sax.SAXSource SAXSource}, and
* {@link javax.xml.transform.stream.StreamSource StreamSource}.
*
- * @return A Transformer
object that may be used to perform
- * a transformation in a single Thread
, never
- * null
.
+ * @return A {@code Transformer} object that may be used to perform
+ * a transformation in a single {@code Thread}, never
+ * {@code null}.
*
* @throws TransformerConfigurationException Thrown if there are errors when
- * parsing the Source
or it is not possible to create a
- * Transformer
instance.
+ * parsing the {@code Source} or it is not possible to create a
+ * {@code Transformer} instance.
*
* @see
* XSL Transformations (XSLT) Version 1.0
@@ -191,15 +188,15 @@
throws TransformerConfigurationException;
/**
- * Create a new Transformer
that performs a copy
- * of the Source
to the Result
.
- * i.e. the "identity transform".
Transformer
instance.
+ * possible to create a {@code Transformer} instance.
*/
public abstract Transformer newTransformer()
throws TransformerConfigurationException;
@@ -215,7 +212,7 @@
* @param source An object that holds a URL, input stream, etc.
*
* @return A Templates object capable of being used for transformation
- * purposes, never null
.
+ * purposes, never {@code null}.
*
* @throws TransformerConfigurationException When parsing to
* construct the Templates object fails.
@@ -224,13 +221,13 @@
throws TransformerConfigurationException;
/**
- * Get the stylesheet specification(s) associated with the
- * XML Source
document via the
+ * Get the stylesheet specification(s) associated with the
+ * XML {@code Source} document via the
*
* xml-stylesheet processing instruction that match the given criteria.
* Note that it is possible to return several stylesheets, in which case
* they are applied as if they were a list of imports or cascades in a
- * single stylesheet.
Source
Object
suitable for passing
+ * @return A {@code Source} {@code Object} suitable for passing
* to the {@code TransformerFactory}.
*
- * @throws TransformerConfigurationException An Exception
+ * @throws TransformerConfigurationException An {@code Exception}
* is thrown if an error occurings during parsing of the
- * source
.
+ * {@code source}.
*
* @see
* Associating Style Sheets with XML documents Version 1.0
@@ -275,22 +272,22 @@
//======= CONFIGURATION METHODS =======
/**
- * Set a feature for this {@code TransformerFactory} and Transformer
s
- * or Template
s created by this factory.
Set a feature for this {@code TransformerFactory} and {@code Transformer}s + * or {@code Template}s created by this factory. * *
* Feature names are fully qualified {@link java.net.URI}s.
* Implementations may define their own features.
* An {@link TransformerConfigurationException} is thrown if this {@code TransformerFactory} or the
- * Transformer
s or Template
s it creates cannot support the feature.
+ * {@code Transformer}s or {@code Template}s it creates cannot support the feature.
* It is possible for an {@code TransformerFactory} to expose a feature value but be unable to change its state.
- *
All implementations are required to support the {@link javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING} feature. - * When the feature is:
+ * When the feature is: *true
: the implementation will limit XML processing to conform to implementation limits
+ * {@code true}: the implementation will limit XML processing to conform to implementation limits
* and behave in a secure fashion as defined by the implementation.
* Examples include resolving user defined style sheets and functions.
* If XML processing is limited for security reasons, it will be reported via a call to the registered
@@ -298,17 +295,17 @@
* See {@link #setErrorListener(ErrorListener listener)}.
* false
: the implementation will processing XML according to the XML specifications without
+ * {@code false}: the implementation will processing XML according to the XML specifications without
* regard to possible implementation limits.
* true
or false
.
+ * @param value Is feature state {@code true} or {@code false}.
*
* @throws TransformerConfigurationException if this {@code TransformerFactory}
- * or the Transformer
s or Template
s it creates cannot support this feature.
- * @throws NullPointerException If the name
parameter is null.
+ * or the {@code Transformer}s or {@code Template}s it creates cannot support this feature.
+ * @throws NullPointerException If the {@code name} parameter is null.
*/
public abstract void setFeature(String name, boolean value)
throws TransformerConfigurationException;
@@ -319,16 +316,16 @@
*
* Feature names are fully qualified {@link java.net.URI}s.
* Implementations may define their own features.
- * false
is returned if this {@code TransformerFactory} or the
- * Transformer
s or Template
s it creates cannot support the feature.
+ * {@code false} is returned if this {@code TransformerFactory} or the
+ * {@code Transformer}s or {@code Template}s it creates cannot support the feature.
* It is possible for an {@code TransformerFactory} to expose a feature value but be unable to change its state.
- *
true
or false
.
+ * @return The current state of the feature, {@code true} or {@code false}.
*
- * @throws NullPointerException If the name
parameter is null.
+ * @throws NullPointerException If the {@code name} parameter is null.
*/
public abstract boolean getFeature(String name);
@@ -336,13 +333,13 @@
* Allows the user to set specific attributes on the underlying
* implementation. An attribute in this context is defined to
* be an option that the implementation provides.
- * An IllegalArgumentException
is thrown if the underlying
+ * An {@code IllegalArgumentException} is thrown if the underlying
* implementation doesn't recognize the attribute.
* * All implementations that implement JAXP 1.5 or newer are required to * support the {@link javax.xml.XMLConstants#ACCESS_EXTERNAL_DTD} and * {@link javax.xml.XMLConstants#ACCESS_EXTERNAL_STYLESHEET} properties. - *
+ * *@@ -351,7 +348,7 @@ * If access is denied during transformation due to the restriction of this property, * {@link javax.xml.transform.TransformerException} will be thrown by * {@link javax.xml.transform.Transformer#transform(Source, Result)}. - *
+ * ** Access to external DTDs in the stylesheet is restricted to the protocols * specified by the {@link javax.xml.XMLConstants#ACCESS_EXTERNAL_DTD} property. @@ -359,7 +356,7 @@ * restriction of this property, * {@link javax.xml.transform.TransformerConfigurationException} will be thrown * by the {@link #newTransformer(Source)} method. - *
+ * ** Access to external reference set by the stylesheet processing instruction, * Import and Include element is restricted to the protocols specified by the @@ -368,14 +365,14 @@ * restriction of this property, * {@link javax.xml.transform.TransformerConfigurationException} will be thrown * by the {@link #newTransformer(Source)} method. - *
+ * ** Access to external document through XSLT document function is restricted * to the protocols specified by the property. If access is denied during * the transformation due to the restriction of this property, * {@link javax.xml.transform.TransformerException} will be thrown by the * {@link javax.xml.transform.Transformer#transform(Source, Result)} method. - *
+ * *IllegalArgumentException
is thrown if the underlying
+ * An {@code IllegalArgumentException} is thrown if the underlying
* implementation doesn't recognize the attribute.
*
* @param name The name of the attribute.
@@ -406,13 +403,13 @@
* Set the error event listener for the TransformerFactory, which
* is used for the processing of transformation instructions,
* and not for the transformation itself.
- * An IllegalArgumentException
is thrown if the
- * ErrorListener
listener is null
.
+ * An {@code IllegalArgumentException} is thrown if the
+ * {@code ErrorListener} listener is {@code null}.
*
* @param listener The new error listener.
*
- * @throws IllegalArgumentException When listener
is
- * null
+ * @throws IllegalArgumentException When {@code listener} is
+ * {@code null}
*/
public abstract void setErrorListener(ErrorListener listener);