|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.source.BaseSource | +--org.enhydra.zeus.source.DTDSource | +--org.enhydra.zeus.source.StreamDTDSource
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.
Source
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.
Fields inherited from class org.enhydra.zeus.source.BaseSource |
systemID |
Constructor Summary | |
StreamDTDSource(java.io.InputStream inputStream)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
as needed. |
|
StreamDTDSource(java.io.InputStream inputStream,
java.lang.String systemID)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
as needed. |
|
StreamDTDSource(java.io.Reader reader)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
as needed. |
|
StreamDTDSource(java.io.Reader reader,
java.lang.String systemID)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
as needed. |
Method Summary | |
com.wutka.dtd.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamDTDSource(java.io.InputStream inputStream, java.lang.String systemID)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
as needed. It
also takes in a system ID for resolution of
external references.
Document
inputStream
- InputStream
to read from.systemID
- String
system ID for input
document.public StreamDTDSource(java.io.InputStream inputStream)
This will take in an InputStream
and read XML from that stream when asked,
converting the read XML into a
as needed.
It assumes that no system ID is present; for
passing in a system ID, see
Document
.
StreamDTDSource(InputStream, String)
inputStream
- InputStream
to read from.public StreamDTDSource(java.io.Reader reader, java.lang.String systemID)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
as needed. It
also takes in a system ID for resolution of
external references.
Document
reader
- Reader
to read from.systemID
- String
system ID for input
document.public StreamDTDSource(java.io.Reader reader)
This will take in a Reader
and read XML from that stream when asked,
converting the read XML into a
as needed.
It assumes that no system ID is present; for
passing in a system ID, see
Document
.
StreamDTDSource(Reader, String)
reader
- Reader
to read from.Method Detail |
public com.wutka.dtd.DTD getDTD() throws java.io.IOException
This will return the DTDParser
's
DTD
representation of the supplied
XML DTD.
getDTD
in class DTDSource
DTD
- the DTDParser
representation of the input source.IOException
- - when construction of
a DTD
generates errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |