public class XMLEncoder extends Encoder implements java.lang.AutoCloseable
PersistenceDelegate and Encoder
infrastructure to generate an XML representation of the objects it
serializes.| Constructor and Description |
|---|
XMLEncoder(java.io.OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
java.lang.Object |
getOwner() |
void |
setOwner(java.lang.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(java.lang.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.
|
get, getExceptionListener, getPersistenceDelegate, remove, setExceptionListener, setPersistenceDelegatepublic XMLEncoder(java.io.OutputStream os)
public void close()
close in interface java.lang.AutoCloseablepublic void flush()
public void writeExpression(Expression expr)
EncoderNote: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
writeExpression in class Encoderpublic void writeStatement(Statement stmt)
EncoderNote: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
writeStatement in class Encoderpublic void writeObject(java.lang.Object o)
writeObject in class Encoderpublic void setOwner(java.lang.Object o)
public java.lang.Object getOwner()