Uses of Class
java.beans.Encoder
Packages that use Encoder
Package
Description
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
-
Uses of Encoder in java.beans
Subclasses of Encoder in java.beansModifier and TypeClassDescriptionclass
TheXMLEncoder
class is a complementary alternative to theObjectOutputStream
and can used to generate a textual representation of a JavaBean in the same way that theObjectOutputStream
can be used to create binary representation ofSerializable
objects.Methods in java.beans with parameters of type EncoderModifier and TypeMethodDescriptionprotected void
DefaultPersistenceDelegate.initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
This default implementation of theinitialize
method 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 void
PersistenceDelegate.initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
Produce a series of statements with side effects onnewInstance
so that the new instance becomes equivalent tooldInstance
.protected Expression
DefaultPersistenceDelegate.instantiate(Object oldInstance, Encoder out)
This default implementation of theinstantiate
method returns an expression containing the predefined method name "new" which denotes a call to a constructor with the arguments as specified in theDefaultPersistenceDelegate
's constructor.protected abstract Expression
PersistenceDelegate.instantiate(Object oldInstance, Encoder out)
Returns an expression whose value isoldInstance
.void
PersistenceDelegate.writeObject(Object oldInstance, Encoder out)
ThewriteObject
is a single entry point to the persistence and is used by anEncoder
in the traditional mode of delegation.