|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.jibx.XMLDocumentOutputStream<T>
T - XML document typepublic class XMLDocumentOutputStream<T>
OutputStream over which XML documents are passed. This class is a companion to XMLDocumentOutputStream.
XML documents are created from Java objects via JiBXUtil.writeObject().
Instances of this class are thread-safe.
XMLDocumentInputStream| Constructor Summary | |
|---|---|
XMLDocumentOutputStream(Class<T> type,
OutputStream output)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying output stream. |
void |
write(T obj)
Write the object encoded as XML to the underlying output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDocumentOutputStream(Class<T> type,
OutputStream output)
type - Java type for XML documentsoutput - data destination| Method Detail |
|---|
public void write(T obj)
throws IOException,
JiBXException
IOException
JiBXException
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||