Java java.beans XMLEncoder fields, constructors, methods, implement or subclass

Example usage for Java java.beans XMLEncoder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.beans XMLEncoder.

The text is from its open source code.

Constructor

XMLEncoder(OutputStream out)
Creates a new XML encoder to write out JavaBeans to the stream out using an XML encoding.

Method

voidclose()
This method calls flush , writes the closing postamble and then closes the output stream associated with this stream.
voidflush()
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.
voidsetExceptionListener(ExceptionListener exceptionListener)
Sets the exception handler for this stream to exceptionListener .
voidsetPersistenceDelegate(Class type, PersistenceDelegate delegate)
Associates the specified persistence delegate with the given type.
voidwriteObject(Object o)
Write an XML representation of the specified object to the output.