|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.result.BaseResult
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.
Result
This implementation of Result
handles the
basic functionality of dealing with system IDs so that
other implementations don't have to code these methods.
Thus, XXXResult
classes should extend
this class, rather than directly implementing
Result
, and will get this functionality
"for free."
Field Summary | |
protected java.lang.String |
systemID
The system ID for this Result |
Constructor Summary | |
BaseResult()
|
Method Summary | |
java.lang.String |
getSystemID()
This will return the system ID associated with this Result . |
void |
setSystemID(java.lang.String systemID)
This will set the system ID for this Result . |
abstract void |
write(java.lang.String output)
This will write a character stream to the output facility associated with this Result . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String systemID
Result
Constructor Detail |
public BaseResult()
Method Detail |
public java.lang.String getSystemID()
This will return the system ID associated with
this Result
. This is generally in
the form of a URI.
getSystemID
in interface Result
String
- the system ID for the
Result
.public void setSystemID(java.lang.String systemID)
This will set the system ID for this
Result
. This is important to use,
even when output is in the form of an output stream
(see
)
for resolving external references, such as to a DTD.
StreamResult
setSystemID
in interface Result
systemID
- String
system ID to use.public abstract void write(java.lang.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.
write
in interface Result
output
- String
to output.IOException
- - when errors in output occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |