Module com.sun.xml.messaging.saaj
Class EfficientStreamingTransformer
java.lang.Object
javax.xml.transform.Transformer
com.sun.xml.messaging.saaj.util.transform.EfficientStreamingTransformer
This class is a proxy for a Transformer object with optimizations
for certain cases. If source and result are of type stream, then
bytes are simply copied whenever possible (note that this assumes
that the input is well formed). In addition, it provides support for
FI using native DOM parsers and serializers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getOutputProperty
(String str) getParameter
(String str) static Transformer
Return Transformer instance for this thread, allocating a new one if necessary.void
setErrorListener
(ErrorListener errorListener) void
setOutputProperties
(Properties properties) void
setOutputProperty
(String str, String str1) void
setParameter
(String str, Object obj) void
setURIResolver
(URIResolver uRIResolver) void
Methods inherited from class javax.xml.transform.Transformer
reset
-
Method Details
-
clearParameters
public void clearParameters()- Specified by:
clearParameters
in classTransformer
-
getErrorListener
- Specified by:
getErrorListener
in classTransformer
-
getOutputProperties
- Specified by:
getOutputProperties
in classTransformer
-
getOutputProperty
- Specified by:
getOutputProperty
in classTransformer
- Throws:
IllegalArgumentException
-
getParameter
- Specified by:
getParameter
in classTransformer
-
getURIResolver
- Specified by:
getURIResolver
in classTransformer
-
setErrorListener
- Specified by:
setErrorListener
in classTransformer
- Throws:
IllegalArgumentException
-
setOutputProperties
- Specified by:
setOutputProperties
in classTransformer
- Throws:
IllegalArgumentException
-
setOutputProperty
- Specified by:
setOutputProperty
in classTransformer
- Throws:
IllegalArgumentException
-
setParameter
- Specified by:
setParameter
in classTransformer
-
setURIResolver
- Specified by:
setURIResolver
in classTransformer
-
transform
- Specified by:
transform
in classTransformer
- Throws:
TransformerException
-
newTransformer
Return Transformer instance for this thread, allocating a new one if necessary. Note that this method does not clear global parameters, properties or any other data set on a previously used transformer.- Returns:
- Transformer instance
-