|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDocumentTransformer
The IDocumentTransformer represents a class that can transform Document objects using an XSL template and writes the output to various targets.
The transformer can also take a map of parameters used for the transformation.
| Method Summary | |
|---|---|
Map<String,String> |
getParameters()
Gets parameters used in the transformation. |
void |
setParameters(Map<String,String> parameters)
Sets parameters used in the parameters. |
void |
setTemplate(File file)
Sets the XSL template that will be used in the transformation. |
void |
setTemplate(String resourceName)
Sets the XSL template that will be used in the transformation. |
void |
setTemplate(URL url)
Sets the XSL template that will be used in the transformation. |
String |
transform(Document document)
Transforms a document. |
void |
transform(File file,
Document document)
Transforms a document. |
void |
transform(OutputStream out,
Document document)
Transforms a document. |
void |
transform(Writer writer,
Document document)
Transforms a document. |
| Method Detail |
|---|
void setTemplate(File file)
throws IOException,
TransformerConfigurationException
file - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
void setTemplate(String resourceName)
throws IOException,
TransformerConfigurationException
resourceName - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
void setTemplate(URL url)
throws IOException,
TransformerConfigurationException
url - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration errorMap<String,String> getParameters()
void setParameters(Map<String,String> parameters)
parameters - parameters
void transform(Writer writer,
Document document)
throws TransformerException,
IOException
writer - outputdocument - document
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
TransformerException
void transform(OutputStream out,
Document document)
throws TransformerException,
IOException
out - outputdocument - document
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
TransformerException
void transform(File file,
Document document)
throws IOException,
TransformerException
file - outputdocument - document
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
TransformerException
String transform(Document document)
throws TransformerException,
IOException
document - document
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
TransformerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||