Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.transform.stream.StreamResult
Field Summary | |
static String |
|
Fields inherited from interface javax.xml.transform.Result | |
PI_DISABLE_OUTPUT_ESCAPING , PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
| |
| |
| |
| |
|
Method Summary | |
OutputStream |
|
String |
|
Writer |
|
void |
|
void |
|
void |
|
void |
|
public static final String FEATURE
Factory feature indicating that stream results are supported.
public StreamResult()
Default constructor.
public StreamResult(File file)
Constructor with a system ID specified as a File object.
public StreamResult(OutputStream stream)
Constructor with an output stream.
public StreamResult(String systemID)
Constructor with a system ID.
public StreamResult(Writer writer)
Constructor with a writer. Prefer to use an output stream rather than a writer, so that the output encoding can be controlled by transformation properties.
public OutputStream getOutputStream()
Returns the target output stream.
public String getSystemId()
Returns the system ID.
- Specified by:
- getSystemId in interface Result
public Writer getWriter()
Returns the target writer.
public void setOutputStream(OutputStream outputStream)
Sets the target output stream.
public void setSystemId(File f)
Sets the system ID from a File reference.
public void setSystemId(String systemID)
Sets the system ID. If neither the out stream nor the writer have been specified, the system ID will be treated as a URL for writing to.
- Specified by:
- setSystemId in interface Result
public void setWriter(Writer writer)
Sets the target writer. Prefer to use an output stream rather than a writer, so that the output encoding can be controlled by transformation properties.