| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.enhydra.zeus.result.BaseResult | +--org.enhydra.zeus.result.StreamResult
Result
provides an interface for all output
means. It details the required contract that other
portions of the Zeus XML data binding framework must
use for processing to an arbitrary output.
This implementation of Result
deals with
output to Java I/O streams, such as OutputStream
s
and Writer
s. It allows passing in of these
types of constructs and subsequent output to them, through
various constructors.
Constructor Summary | |
StreamResult(OutputStream outputStream, String systemID) This will take in an OutputStream
and output XML to that stream when asked. | |
StreamResult(OutputStream outputStream) This will take in an OutputStream
and output XML to that stream when asked
It assumes that no system ID is present; for
passing in a system ID, see
#StreamResult(OutputStream, String) . | |
StreamResult(Writer writer, String systemID) This will take in a Reader
and write XML to that stream when asked. | |
StreamResult(Writer writer) This will take in a Writer
and write XML to that stream when asked. |
Method Summary | |
Writer | getWriter() This will expose the Writer associated with this
StreamResult for direct manipulation. |
void | write(String output) This will write a character stream to the output facility associated with this Result . |
Methods inherited from class org.enhydra.zeus.result.BaseResult |
getSystemID, setSystemID |
Constructor Detail |
public StreamResult(OutputStream outputStream, String systemID)
This will take in an OutputStream
and output XML to that stream when asked. It
also takes in a system ID for resolution of
external references.
OutputStream
to write to.String
system ID for output
document.public StreamResult(OutputStream outputStream)
This will take in an OutputStream
and output XML to that stream when asked
It assumes that no system ID is present; for
passing in a system ID, see
#StreamResult(OutputStream, String)
.
OutputStream
to write to.public StreamResult(Writer writer, String systemID)
This will take in a Reader
and write XML to that stream when asked. It
also takes in a system ID for resolution of
external references.
Writer
to write to.String
system ID for input
document.public StreamResult(Writer writer)
This will take in a Writer
and write XML to that stream when asked.
It assumes that no system ID is present; for
passing in a system ID, see
#StreamResult(Writer, String)
.
Writer
to write to.Method Detail |
public Writer getWriter()
throws java.io.IOException
This will expose the Writer
associated with this
StreamResult
for direct manipulation.
Writer
- the output method for this Result
.public void write(String output)
throws java.io.IOException
This will write a character stream to the output
facility associated with this Result
.
No additional formatting is added, so line feeds,
tabs, or other special characters should be handled
by the code performing output.
String
to output.IOException
- - when errors in output occur.Association Links |
Writer
to write to
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |