public class XslTransformer extends Object
| Constructor and Description |
|---|
XslTransformer(File stylesheet) |
XslTransformer(InputStream stylesheet) |
XslTransformer(Reader stylesheet) |
XslTransformer(String stylesheet)
stylesheet is assumed to be a resource URI
|
XslTransformer(String stylesheet,
Reader sheet) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
static boolean |
clear(String id)
clear Templates for id from cache
|
void |
clearParameters() |
static Transformer |
get(String id)
returns Transformer from cached Templates or null
|
<W extends Writer> |
streamTransform(Reader source,
W result) |
String |
transform(String source) |
public XslTransformer(File stylesheet) throws TransformerConfigurationException, FileNotFoundException
public XslTransformer(InputStream stylesheet) throws TransformerConfigurationException
public XslTransformer(Reader stylesheet) throws TransformerConfigurationException
public XslTransformer(String stylesheet) throws TransformerConfigurationException
stylesheet - TransformerConfigurationExceptionpublic XslTransformer(String stylesheet, Reader sheet) throws TransformerConfigurationException
public static Transformer get(String id) throws TransformerConfigurationException
id - TransformerConfigurationExceptionpublic static boolean clear(String id)
id - public String transform(String source) throws TransformerException
TransformerExceptionpublic <W extends Writer> W streamTransform(Reader source, W result) throws TransformerException
TransformerExceptionpublic void clearParameters()
Copyright © 2018–2019 Fryske Akademy. All rights reserved.