@Immutable public final class XMLTransformerFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static TransformerFactory |
createTransformerFactory(ErrorListener aErrorListener,
URIResolver aURIResolver) |
static TransformerFactory |
getDefaultTransformerFactory() |
static void |
makeTransformerFactorySecure(TransformerFactory aFactory,
String... aAllowedExternalSchemes)
Set the secure processing feature to a
TransformerFactory. |
static Templates |
newTemplates(com.helger.commons.io.resource.IReadableResource aResource)
Create a new XSLT Template for the passed resource.
|
static Templates |
newTemplates(Source aSource)
Create a new XSLT Template for the passed resource.
|
static Templates |
newTemplates(TransformerFactory aFactory,
com.helger.commons.io.resource.IReadableResource aResource)
Create a new XSLT Template for the passed resource.
|
static Templates |
newTemplates(TransformerFactory aTransformerFactory,
Source aSource)
Create a new XSLT Template for the passed resource.
|
static Transformer |
newTransformer()
Create a new XSLT transformer for no specific resource.
|
static Transformer |
newTransformer(com.helger.commons.io.resource.IReadableResource aResource)
Create a new XSLT transformer for the passed resource.
|
static Transformer |
newTransformer(Source aSource)
Create a new XSLT transformer for the passed resource.
|
static Transformer |
newTransformer(TransformerFactory aTransformerFactory)
Create a new XSLT transformer for no specific resource.
|
static Transformer |
newTransformer(TransformerFactory aTransformerFactory,
com.helger.commons.io.resource.IReadableResource aResource)
Create a new XSLT transformer for the passed resource.
|
static Transformer |
newTransformer(TransformerFactory aTransformerFactory,
Source aSource)
Create a new XSLT transformer for the passed resource.
|
@Nonnull public static TransformerFactory createTransformerFactory(@Nullable ErrorListener aErrorListener, @Nullable URIResolver aURIResolver)
public static void makeTransformerFactorySecure(@Nonnull TransformerFactory aFactory, @Nullable String... aAllowedExternalSchemes)
TransformerFactory. See
https://docs.oracle.com/javase/tutorial/jaxp/properties/properties.html for
details.aFactory - The factory to secure. May not be null.aAllowedExternalSchemes - Optional external URL schemes that are allowed to be accessed (as in
"file" or "http")@Nonnull public static TransformerFactory getDefaultTransformerFactory()
@Nullable public static Transformer newTransformer()
null if something goes wrong@Nullable public static Transformer newTransformer(@Nonnull TransformerFactory aTransformerFactory)
aTransformerFactory - The transformer factory to be used. May not be null.null if something goes wrong@Nullable public static Transformer newTransformer(@Nonnull com.helger.commons.io.resource.IReadableResource aResource)
aResource - The resource to be transformed. May not be null.null if something goes wrong@Nullable public static Transformer newTransformer(@Nonnull TransformerFactory aTransformerFactory, @Nonnull com.helger.commons.io.resource.IReadableResource aResource)
aTransformerFactory - The transformer factory to be used. May not be null.aResource - The resource to be transformed. May not be null.null if something goes wrong@Nullable public static Transformer newTransformer(@Nonnull Source aSource)
aSource - The resource to be transformed. May not be null.null if something goes wrong@Nullable public static Transformer newTransformer(@Nonnull TransformerFactory aTransformerFactory, @Nonnull Source aSource)
aTransformerFactory - The transformer factory to be used. May not be null.aSource - The resource to be transformed. May not be null.null if something goes wrong@Nullable public static Templates newTemplates(@Nonnull com.helger.commons.io.resource.IReadableResource aResource)
aResource - The resource to be templated. May not be null.null if something goes wrong@Nullable public static Templates newTemplates(@Nonnull Source aSource)
aSource - The resource to be templated. May not be null.null if something goes wrong@Nullable public static Templates newTemplates(@Nonnull TransformerFactory aFactory, @Nonnull com.helger.commons.io.resource.IReadableResource aResource)
aFactory - The transformer factory to be used. May not be null.aResource - The resource to be templated. May not be null.null if something goes wrong@Nullable public static Templates newTemplates(@Nonnull TransformerFactory aTransformerFactory, @Nonnull Source aSource)
aTransformerFactory - The transformer factory to be used. May not be null.aSource - The resource to be templated. May not be null.null if something goes wrongCopyright © 2014–2019 Philip Helger. All rights reserved.