Example usage for Java java.beans XMLEncoder fields, constructors, methods, implement or subclass
The text is from its open source code.
XMLEncoder(OutputStream out) Creates a new XML encoder to write out JavaBeans to the stream out using an XML encoding. |
void | close() This method calls flush , writes the closing postamble and then closes the output stream associated with this stream. |
void | flush() This method writes out the preamble associated with the XML encoding if it has not been written already and then writes out all of the values that been written to the stream since the last time flush was called. |
void | setExceptionListener(ExceptionListener exceptionListener) Sets the exception handler for this stream to exceptionListener . |
void | setPersistenceDelegate(Class> type, PersistenceDelegate delegate) Associates the specified persistence delegate with the given type. |
void | writeObject(Object o) Write an XML representation of the specified object to the output. |