|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLSerializable
A class that implements XMLSerializable can be written to an external target and later reinitialized using that target as a source. As the data is written in XML format, the exported data can be embedded in XML files that also contain other data.
XmlHelper,
XMLEncoder,
XMLDecoder| Method Summary | |
|---|---|
void |
exportXML(OutputStream out)
exports the entire object as XML and writes it to the given Writer, so that the object can be reconstructed with importXML(InputSource). |
void |
importXML(InputStream source)
The object is fully reinitialized with the XML data contained in the given ImputSource, so that the object has the same state as it had during export. |
| Method Detail |
|---|
void exportXML(OutputStream out)
throws IOException
importXML(InputSource).
The given stream is neither flushed nor closed, so that other data may be
effectively written to the InputSource after the method returned.
IOExceptionimportXML(InputStream)
void importXML(InputStream source)
throws SAXException,
IOException,
ClassCastException
SAXException
IOException
ClassCastExceptionexportXML(OutputStream)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||