|
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 implmements 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.
| Method Summary | |
|---|---|
void |
exportXML(Writer out)
exports the enire object as XML and writes it to the given Writer, so that the object can be reconstructed with importXML(InputSource). |
void |
importXML(InputSource 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(Writer out)
throws IOException
importXML(InputSource).
The given Writer is neither flushed nor closed, so that other data may be
effectively written to the InputSource after the method returned.
IOExceptionimportXML(InputSource)
void importXML(InputSource source)
throws SAXException,
IOException
SAXException
IOExceptionexportXML(Writer)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||