|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.xml.DocumentTransformer
public class DocumentTransformer
| Constructor Summary | |
|---|---|
DocumentTransformer()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentTransformer()
| Method Detail |
|---|
public void setTemplate(File file)
throws IOException,
TransformerConfigurationException
IDocumentTransformer
setTemplate in interface IDocumentTransformerfile - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
public void setTemplate(String resourceName)
throws IOException,
TransformerConfigurationException
IDocumentTransformer
setTemplate in interface IDocumentTransformerresourceName - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
public void setTemplate(URL url)
throws IOException,
TransformerConfigurationException
IDocumentTransformer
setTemplate in interface IDocumentTransformerurl - XSL template
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration errorpublic Map<String,String> getParameters()
IDocumentTransformer
getParameters in interface IDocumentTransformerpublic void setParameters(Map<String,String> parameters)
IDocumentTransformer
setParameters in interface IDocumentTransformerparameters - parameters
public void transform(Writer writer,
Document document)
throws TransformerException,
IOException
IDocumentTransformer
transform in interface IDocumentTransformerwriter - outputdocument - document
TransformerConfigurationException - if a serious configuration error
IOException - if an I/O error occurs
TransformerException
public void transform(OutputStream out,
Document document)
throws TransformerException,
IOException
IDocumentTransformer
transform in interface IDocumentTransformerout - outputdocument - document
TransformerConfigurationException - if a serious configuration error
IOException - if an I/O error occurs
TransformerException
public void transform(File file,
Document document)
throws IOException,
TransformerException
IDocumentTransformer
transform in interface IDocumentTransformerfile - outputdocument - document
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error
TransformerException
public String transform(Document document)
throws TransformerException,
IOException
IDocumentTransformer
transform in interface IDocumentTransformerdocument - document
TransformerConfigurationException - if a serious configuration error
IOException - if an I/O error occurs
TransformerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||