Uses of Class
Contains classes related to developing beans -- components based on the JavaBeans architecture.
Uses of Encoder in java.beansModifier and TypeClassDescription
XMLEncoderclass is a complementary alternative to the
ObjectOutputStreamand can used to generate a textual representation of a JavaBean in the same way that the
ObjectOutputStreamcan be used to create binary representation of
Serializableobjects.Modifier and TypeMethodDescription
(Class<?> type, Object oldInstance, Object newInstance, Encoder out)This default implementation of the
initializemethod assumes all state held in objects of this type is exposed via the matching pairs of "setter" and "getter" methods in the order they are returned by the Introspector.
protected voidProduce a series of statements with side effects on
newInstanceso that the new instance becomes equivalent to
protected ExpressionThis default implementation of the
instantiatemethod returns an expression containing the predefined method name "new" which denotes a call to a constructor with the arguments as specified in the
protected abstract ExpressionReturns an expression whose value is
writeObjectis a single entry point to the persistence and is used by an
Encoderin the traditional mode of delegation.