|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbsys.xml.transformer.DomTransformer
public class DomTransformer
Transform (document to XML text)
Field Summary | |
---|---|
private boolean |
outputHtml
Output as html |
private java.lang.String |
theDtd
Dtd string |
Constructor Summary | |
---|---|
DomTransformer()
Constructor |
|
DomTransformer(boolean thisOutputHtmlFlag,
java.lang.String thisDtd)
Constructor |
Method Summary | |
---|---|
org.w3c.dom.Document |
documentToDocument(org.w3c.dom.Document thisDocument,
java.net.URL thisXslt)
Transform DOM document to DOM document |
void |
documentToFile(org.w3c.dom.Document thisDocument,
java.io.File thisOutputFile)
Transform DOM document to XML file |
void |
documentToFile(org.w3c.dom.Document thisDocument,
java.net.URL thisXsltUrl,
java.io.File thisOutputFile)
Transform DOM document to XML file after applying XSL transform |
void |
documentToStream(org.w3c.dom.Document thisDocument,
java.io.OutputStream thisOutputStream)
Transform DOM document to XML stream |
java.lang.String |
documentToString(org.w3c.dom.Document thisDocument)
Transform DOM document to XML string |
java.lang.String |
documentToString(org.w3c.dom.Document thisDocument,
java.io.File thisXsltFile)
Transform DOM document to XML string after applying XSL transformation |
java.lang.String |
documentToString(org.w3c.dom.Document thisDocument,
java.net.URL thisXsltUrl)
Transform DOM document to XML string after applying XSL transformation |
org.w3c.dom.Document |
fileToDocument(java.net.URL thisXmlUrl,
java.net.URL thisXsltUrl)
File to document |
void |
fileToFile(java.lang.String thisInFilePath,
java.lang.String thisOutFilePath,
java.lang.String thisXsltFilePath)
Transform XML file to XML file using XSLT file |
protected org.w3c.dom.Document |
toDocument(javax.xml.transform.Source thisSource,
javax.xml.transform.Source thisXslt)
Transform source to document |
protected void |
toFile(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt,
java.io.File thisFile)
Transform DOM document to XML file |
protected void |
toStream(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt,
javax.xml.transform.stream.StreamResult thisResult)
Transform DOM document to stream result |
protected java.lang.String |
toString(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt)
Transform DOM document to XML string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean outputHtml
private java.lang.String theDtd
Constructor Detail |
---|
public DomTransformer()
public DomTransformer(boolean thisOutputHtmlFlag, java.lang.String thisDtd)
thisOutputHtmlFlag
- output as htmlthisDtd
- dtd idMethod Detail |
---|
public void fileToFile(java.lang.String thisInFilePath, java.lang.String thisOutFilePath, java.lang.String thisXsltFilePath) throws javax.xml.transform.TransformerException, java.io.IOException
thisInFilePath
- in filethisOutFilePath
- out filethisXsltFilePath
- xslt file
javax.xml.transform.TransformerException
java.io.IOException
public void documentToFile(org.w3c.dom.Document thisDocument, java.io.File thisOutputFile) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisOutputFile
- is the output file
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public void documentToFile(org.w3c.dom.Document thisDocument, java.net.URL thisXsltUrl, java.io.File thisOutputFile) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXsltUrl
- is the XSLT source filethisOutputFile
- is the output file
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public java.lang.String documentToString(org.w3c.dom.Document thisDocument) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XML
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public java.lang.String documentToString(org.w3c.dom.Document thisDocument, java.io.File thisXsltFile) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXsltFile
- is the XSLT source file
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public java.lang.String documentToString(org.w3c.dom.Document thisDocument, java.net.URL thisXsltUrl) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXsltUrl
- is the XSLT source url
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public void documentToStream(org.w3c.dom.Document thisDocument, java.io.OutputStream thisOutputStream) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisOutputStream
- is the output stream
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public org.w3c.dom.Document fileToDocument(java.net.URL thisXmlUrl, java.net.URL thisXsltUrl) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisXmlUrl
- XML document urlthisXsltUrl
- XSL url
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public org.w3c.dom.Document documentToDocument(org.w3c.dom.Document thisDocument, java.net.URL thisXslt) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- DOM documentthisXslt
- XSLT url
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
protected java.lang.String toString(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXslt
- is the XSLT source
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
protected void toFile(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, java.io.File thisFile) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXslt
- is the XSLT sourcethisFile
- output file
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
protected void toStream(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, javax.xml.transform.stream.StreamResult thisResult) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLthisXslt
- is the XSLT sourcethisResult
- is the stream result
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
protected org.w3c.dom.Document toDocument(javax.xml.transform.Source thisSource, javax.xml.transform.Source thisXslt) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisSource
- the sourcethisXslt
- the XSLT source
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |