XMLEncoder
Class XMLEncoder
- java.lang.Object
-
- java-beans-Encoder
-
- java.beans.XMLEncoder
- All Implemented Interfaces:
- AutoCloseable
public class XMLEncoder extends Encoder implements AutoCloseable
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. For example, the following fragment can be used to create a textual representation the su