java.beans
Class XMLEncoder

java.lang.Object
  extended by java.beans.Encoder
      extended by java.beans.XMLEncoder

public class XMLEncoder
extends Encoder

This class uses the PersistenceDelegate and Encoder infrastructure to generate an XML representation of the objects it serializes.

Since:
1.4

Constructor Summary
XMLEncoder(OutputStream os)
           
 
Method Summary
 void close()
           
 void flush()
           
 Object getOwner()
           
 void setOwner(Object o)
           
 void writeExpression(Expression expr)
           Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
 void writeObject(Object o)
           
 void writeStatement(Statement stmt)
           Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
 
Methods inherited from class java.beans.Encoder
get, getExceptionListener, getPersistenceDelegate, remove, setExceptionListener, setPersistenceDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEncoder

public XMLEncoder(OutputStream os)
Method Detail

close

public void close()

flush

public void flush()

writeExpression

public void writeExpression(Expression expr)
Description copied from class: Encoder

Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.

Overrides:
writeExpression in class Encoder

writeStatement

public void writeStatement(Statement stmt)
Description copied from class: Encoder

Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.

Overrides:
writeStatement in class Encoder

writeObject

public void writeObject(Object o)
Overrides:
writeObject in class Encoder

setOwner

public void setOwner(Object o)

getOwner

public Object getOwner()