|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.jibx.XMLDocumentInputStream<T>
T - XML document typepublic class XMLDocumentInputStream<T>
InputStream over which XML documents are passed. This class is a companion to XMLDocumentOutputStream.
XML documents are converted into Java objects via JiBXUtil.readObject().
Instances of this class are thread-safe.
XMLDocumentOutputStream| Constructor Summary | |
|---|---|
XMLDocumentInputStream(Class<T> type,
InputStream input)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
T |
read()
Read the next XML document, parsed and objectified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDocumentInputStream(Class<T> type,
InputStream input)
type - Java type for XML documentsinput - data source| Method Detail |
|---|
public T read()
throws IOException,
JiBXException
null on EOF
IOException
JiBXException
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||