API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. XMLEncoder View Source
Author(s)
Philip Milne
Since
1.4
Version
1.35 03/09/06
Serial
Hierarchy
 Object
      Encoder
          XMLEncoder
Implements
Subclasses
Description
public class XMLEncoder
  The XMLEncoder class is a complementary alternative to the ObjectOutputStream and can used to generate a textual representation of a JavaBean in the same way that the ObjectOutputStream can be used to create binary representation of Serializable objects.
Constructors
public XMLEncoder (OutputStream out)
  Creates a new output stream for sending JavaBeans to the stream out using an XML encoding.
Methods
Hide/Show inherited methods
pack-private void clear () [Overrides Encoder]
public void close ()
This method calls flush, writes the closing postamble and then closes the output stream associated with this stream.
public 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.
public Object get (Object oldInstance) [Inherited From Encoder]
  Returns a tentative value for oldInstance in the environment created by this stream.
pack-private Object getAttribute (Object key) [Inherited From Encoder]
public ExceptionListener getExceptionListener () [Inherited From Encoder]
  Gets the exception handler for this stream.
public Object getOwner ()
  Gets the owner of this encoder.
public PersistenceDelegate getPersistenceDelegate (Class<Object> type) [Inherited From Encoder]
  Returns the persistence delegate for the given type.
pack-private Object getValue (Expression exp) [Inherited From Encoder]
public Object remove (Object oldInstance) [Inherited From Encoder]
  Removes the entry for this instance, returning the old entry.
pack-private void setAttribute (Object key, Object value) [Inherited From Encoder]
public void setExceptionListener (ExceptionListener exceptionListener) [Inherited From Encoder]
  Sets the exception handler for this stream to exceptionListener.
public void setOwner (Object owner)
  Sets the owner of this encoder to owner.
public void setPersistenceDelegate (Class<Object> type, PersistenceDelegate persistenceDelegate) [Inherited From Encoder]
  Sets the persistence delegate associated with this type to persistenceDelegate.
public void writeExpression (Expression oldExp) [Overrides Encoder]
  Records the Expression so that the Encoder will produce the actual output when the stream is flushed.
public void writeObject (Object o) [Overrides Encoder]
  Write an XML representation of the specified object to the output.
public void writeStatement (Statement oldStm) [Overrides Encoder]
  Records the Statement so that the Encoder will produce the actual output when the stream is flushed.
Fields
pack-private boolean executeStatements [Inherited From Encoder]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar