|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.XsltResult
XsltResult represents the result of a XSLT transformation and allows to specify various output possibilities.
| Constructor Summary | |
XsltResult(File file)
Create a XsltResult. |
|
XsltResult(ResultBuilder builder)
Create a XsltResult. |
|
XsltResult(String file)
Create a XsltResult. |
|
XsltResult(String uri,
OutputStream out,
boolean closeOutput)
Create a XsltResult. |
|
XsltResult(String uri,
Writer writer,
boolean closeOutput)
Create a XsltResult. |
|
| Method Summary | |
void |
cleanup()
|
OutputStream |
getOutputStream()
Return the OutputStream. |
ResultBuilder |
getResultBuilder(OutputFormat outputFormat)
Return a ResultBuilder. |
String |
getUri()
Return the uri. |
Writer |
getWriter()
Return the writer. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XsltResult(String file)
throws IOException
file - the name of a file to which the output is written
IOException - thrown if the file cannot be opened
public XsltResult(File file)
throws IOException
file - a file to which the output is written
IOException - thrown if the file cannot be opened
public XsltResult(String uri,
OutputStream out,
boolean closeOutput)
uri - the uri of the outputstream.out - a OutputStream to which the output is writtencloseOutput - a flag indicating if the stream should be
closed after the transformation is finished.
public XsltResult(String uri,
Writer writer,
boolean closeOutput)
uri - the uri of the outputstream.closeOutput - a flag indicating if the writer should be
closed after the transformation is finished.public XsltResult(ResultBuilder builder)
builder - a ResultBuilder to build the result of the transformation.
If an output method is specified in the stylesheet it will
be ignored.| Method Detail |
public ResultBuilder getResultBuilder(OutputFormat outputFormat)
OutputFormat.METHOD_XML,
OutputFormat.METHOD_HTML,
OutputFormat.METHOD_DEFAULTpublic String getUri()
public Writer getWriter()
public OutputStream getOutputStream()
public void reset()
throws IOException
IOExceptionpublic void cleanup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||