| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.enhydra.zeus.source.BaseSource | +--org.enhydra.zeus.source.DTDSource | +--org.enhydra.zeus.source.StreamDTDSource
Source
provides an interface for all input
means. It details the required contract that other
portions of the Zeus XML data binding framework must
use for processing of an arbitrary input.
This implementation of DTDSource
deals with
input from Java I/O streams, such as InputStream
s
and Reader
s. It allows passing in of these
types of constructs and subsequent reading of them, through
various constructors.
Constructor Summary | |
StreamDTDSource(InputStream inputStream, String systemID) This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
Document as needed. | |
StreamDTDSource(InputStream inputStream) This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
Document as needed. | |
StreamDTDSource(Reader reader, String systemID) This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
Document as needed. | |
StreamDTDSource(Reader reader) This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
Document as needed. |
Method Summary | |
DTD | getDTD() This will return the DTDParser 's
DTD representation of the supplied
XML DTD. |
Methods inherited from class org.enhydra.zeus.source.DTDSource |
getDocument |
Methods inherited from class org.enhydra.zeus.source.BaseSource |
getSystemID, setSystemID |
Constructor Detail |
public StreamDTDSource(InputStream inputStream, String systemID)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
Document
as needed. It
also takes in a system ID for resolution of
external references.
InputStream
to read from.String
system ID for input
document.public StreamDTDSource(InputStream inputStream)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
Document
as needed.
It assumes that no system ID is present; for
passing in a system ID, see
#StreamDTDSource(InputStream, String)
.
InputStream
to read from.public StreamDTDSource(Reader reader, String systemID)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
Document
as needed. It
also takes in a system ID for resolution of
external references.
Reader
to read from.String
system ID for input
document.public StreamDTDSource(Reader reader)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
Document
as needed.
It assumes that no system ID is present; for
passing in a system ID, see
#StreamDTDSource(Reader, String)
.
Reader
to read from.Method Detail |
public DTD getDTD()
throws java.io.IOException
This will return the DTDParser
's
DTD
representation of the supplied
XML DTD.
DTD
- the DTDParser
representation of the input source.IOException
- - when construction of
a DTD
generates errors.Association Links |
Reader
to read from
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |