|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.transform.stream.StreamResult
Result for an output stream.
Field Summary | |
static java.lang.String |
FEATURE
The feature name to tell if the transformer can handle stream output. |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
StreamResult()
Zero-arg constructor. |
|
StreamResult(java.io.File file)
Create a StreamResult with a given java.io.File. |
|
StreamResult(java.io.OutputStream os)
Create a StreamResult with a given OutputStream. |
|
StreamResult(java.lang.String systemId)
Create a StreamResult from a given system id (URL) |
|
StreamResult(java.io.Writer writer)
Create a StreamResult with a given Writer. |
Method Summary | |
java.io.OutputStream |
getOutputStream()
Returns the output stream. |
java.lang.String |
getSystemId()
Returns the system identifier (URL). |
java.io.Writer |
getWriter()
Returns the writer. |
void |
setOutputStream(java.io.OutputStream os)
Sets the output stream. |
void |
setSystemId(java.io.File file)
Sets the system identifier (URL) from a File. |
void |
setSystemId(java.lang.String systemId)
Sets the system identifier (URL). |
void |
setWriter(java.io.Writer writer)
Sets the writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FEATURE
Constructor Detail |
public StreamResult()
public StreamResult(java.io.File file)
file
- the result file for the parser.public StreamResult(java.io.OutputStream os)
os
- the result stream.public StreamResult(java.io.Writer writer)
writer
- the result writer.public StreamResult(java.lang.String systemId)
systemId
- the base url of the stream.Method Detail |
public java.io.OutputStream getOutputStream()
public void setOutputStream(java.io.OutputStream os)
public java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
public java.lang.String getSystemId()
getSystemId
in interface Result
javax.xml.transform.Result
public void setSystemId(java.lang.String systemId)
setSystemId
in interface Result
javax.xml.transform.Result
systemId
- set the system id as a URLpublic void setSystemId(java.io.File file)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |