public class XMLEncoder extends Encoder implements AutoCloseable
PersistenceDelegate and Encoder
infrastructure to generate an XML representation of the objects it
serializes.| Constructor and Description |
|---|
XMLEncoder(OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
get, getExceptionListener, getPersistenceDelegate, remove, setExceptionListener, setPersistenceDelegatepublic XMLEncoder(OutputStream os)
public void close()
close in interface 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(Object o)
writeObject in class Encoder