java.beans

Class XMLEncoder

public class XMLEncoder extends Encoder

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

Since: 1.4

Constructor Summary
XMLEncoder(OutputStream os)
Method Summary
voidclose()
voidflush()
ObjectgetOwner()
voidsetOwner(Object o)
voidwriteExpression(Expression expr)
voidwriteObject(Object o)
voidwriteStatement(Statement stmt)

Constructor Detail

XMLEncoder

public XMLEncoder(OutputStream os)

Method Detail

close

public void close()

flush

public void flush()

getOwner

public Object getOwner()

setOwner

public void setOwner(Object o)

writeExpression

public void writeExpression(Expression expr)

writeObject

public void writeObject(Object o)

writeStatement

public void writeStatement(Statement stmt)