|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Stylesheets
Interface Stylesheets
An Interface to provide functionalities for centrally processing stylesheet transformations including URI resolving facilities.
| Method Summary | |
|---|---|
String |
getBaseURI()
get the baseURI stylesheets can be relative to |
Templates |
loadTemplate(String stylesheet)
get a template for the given stylesheet if the wanted one already exists then return this one else create a new one an return it |
void |
loadTemplateAsync(String stylesheet)
Loads a template asynchronously. |
void |
setBaseURI(String base)
set the baseURI stylesheets can be relative to |
void |
transform(org.jdom.Document document,
OutputStream outStream,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
void |
transform(org.jdom.Document document,
Result result,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
void |
transform(org.jdom.Document document,
Writer writer,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
void |
transform(InputStream inStream,
OutputStream outStream,
String stylesheet,
Hashtable params)
Deprecated. use transform(new StreamSource(inStream), new StreamResult(outStream), stylesheet, params) instead |
void |
transform(Source inputSource,
Result outputResult,
String stylesheet,
Hashtable params)
transform a xml document by the given Stylesheet |
| Method Detail |
|---|
void setBaseURI(String base)
throws MalformedURLException
base - the URI to set the baseURI to
MalformedURLException - if the baseURI is not a valid URLString getBaseURI()
null if the baseURI isn't set yet.
Templates loadTemplate(String stylesheet)
throws TransformerException
if the wanted one already exists then return this one else create a new one an return it
stylesheet - the URI of the stylesheet to use for loading
(may be absolute or relative to the baseURI)
TransformerException - if a new template can't
be created for the given stylesheet or a URI can't be resolvedvoid loadTemplateAsync(String stylesheet)
void transform(org.jdom.Document document,
Result result,
String stylesheet,
Hashtable params)
throws TransformerException
document - the JDOM document to transformresult - the Result of the transformation (that means: the transformed document)stylesheet - the URI of the stylesheet used for transformationparams - the parameters used during transformation (as Hashtable) - may be null
TransformerException - if the transformation fails
void transform(org.jdom.Document document,
OutputStream outStream,
String stylesheet,
Hashtable params)
throws TransformerException
document - the JDOM document to transformoutStream - the resultingOutputStream of the transformationstylesheet - the URI of the stylesheet used for transformationparams - the parameters used during transformation (as Hashtable) - may be null
TransformerException - if the transformation fails
void transform(org.jdom.Document document,
Writer writer,
String stylesheet,
Hashtable params)
throws TransformerException
document - the JDOM document to transformoutStream - the resultingWriter of the transformationstylesheet - the URI of the stylesheet used for transformationparams - the parameters used during transformation (as Hashtable) - may be null
TransformerException - if the transformation fails
void transform(Source inputSource,
Result outputResult,
String stylesheet,
Hashtable params)
throws TransformerException
inputSource - the Source of the xml document to transformoutputResult - the Result of the transformation (that means: the transformed document)stylesheet - the URI of the stylesheet used for transformationparams - the parameters used during transformation (as Hashtable) - may be null
TransformerException - if the transformation fails
void transform(InputStream inStream,
OutputStream outStream,
String stylesheet,
Hashtable params)
throws TransformerException
transform(new StreamSource(inStream), new StreamResult(outStream), stylesheet, params) instead
inStream - the InputStream of the xml document to transformoutStream - the resultingOutputStream of the transformationstylesheet - the URI of the stylesheet used for transformationparams - the parameters used during transformation (as Hashtable) - may be null
TransformerException - if the transformation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||