|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.client.browser.dom.Transformer
public class Transformer
Transform (document to XML text)
Field Summary | |
---|---|
private boolean |
outputHtml
Output as html |
private java.lang.String |
theDtd
Dtd string |
Constructor Summary | |
---|---|
Transformer()
Constructor |
|
Transformer(boolean thisOutputHtmlFlag,
java.lang.String thisDtd)
Constructor |
Method Summary | |
---|---|
void |
documentToFile(org.w3c.dom.Document thisDocument,
java.util.Map<java.lang.String,java.lang.String> theseParams,
java.io.File thisOutputFile)
Transform DOM document to XML file |
void |
documentToFile(org.w3c.dom.Document thisDocument,
java.net.URL thisXsltUrl,
java.util.Map<java.lang.String,java.lang.String> theseParams,
java.io.File thisOutputFile)
Transform DOM document to XML file after applying XSL transform |
java.lang.String |
documentToString(org.w3c.dom.Document thisDocument,
java.util.Map<java.lang.String,java.lang.String> theseParams)
Transform DOM document to XML string |
java.lang.String |
documentToString(org.w3c.dom.Document thisDocument,
java.net.URL thisXsltUrl,
java.util.Map<java.lang.String,java.lang.String> theseParams)
Transform DOM document to XML string after applying XSL transformation |
java.io.InputStream |
pipe(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt,
java.util.Map<java.lang.String,java.lang.String> theseParams)
Pipe transform output stream to returned inputstream |
private void |
toFile(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt,
java.util.Map<java.lang.String,java.lang.String> theseParams,
java.io.File thisFile)
Transform DOM document to XML file |
private void |
toStream(org.w3c.dom.Document thisDocument,
javax.xml.transform.Source thisXslt,
java.util.Map<java.lang.String,java.lang.String> theseParams,
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,
java.util.Map<java.lang.String,java.lang.String> theseParams)
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 final boolean outputHtml
private final java.lang.String theDtd
Constructor Detail |
---|
public Transformer()
public Transformer(boolean thisOutputHtmlFlag, java.lang.String thisDtd)
thisOutputHtmlFlag
- output as htmlthisDtd
- dtd idMethod Detail |
---|
public void documentToFile(org.w3c.dom.Document thisDocument, java.util.Map<java.lang.String,java.lang.String> theseParams, 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 XMLtheseParams
- parameters to transmit to the XSL transformerthisOutputFile
- 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.util.Map<java.lang.String,java.lang.String> theseParams, 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 filetheseParams
- parameters to transmit to the XSL transformerthisOutputFile
- 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, java.util.Map<java.lang.String,java.lang.String> theseParams) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, java.io.IOException
thisDocument
- is the DOM Document to be output as XMLtheseParams
- parameters to transmit to the XSL transformer
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, java.util.Map<java.lang.String,java.lang.String> theseParams) 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 urltheseParams
- parameters to transmit to the XSL transformer
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
protected java.lang.String toString(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, java.util.Map<java.lang.String,java.lang.String> theseParams) 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 sourcetheseParams
- parameters to transmit to the XSL transformer
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
private void toFile(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, java.util.Map<java.lang.String,java.lang.String> theseParams, 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 sourcetheseParams
- parameters to transmit to the XSL transformerthisFile
- output file
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
private void toStream(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, java.util.Map<java.lang.String,java.lang.String> theseParams, 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 sourcetheseParams
- parameters to pass to transformerthisResult
- is the stream result
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException
public java.io.InputStream pipe(org.w3c.dom.Document thisDocument, javax.xml.transform.Source thisXslt, java.util.Map<java.lang.String,java.lang.String> theseParams) throws java.io.IOException
thisDocument
- documentthisXslt
- xslttheseParams
- parameters to pass to transformer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |