| java.lang.Object com.sun.media.jai.rmi.SerializableStateImpl
All known Subclasses: com.sun.media.jai.rmi.ShapeState, com.sun.media.jai.rmi.SampleModelState, com.sun.media.jai.rmi.RenderedImageState, com.sun.media.jai.rmi.RasterState, com.sun.media.jai.rmi.HashtableState, com.sun.media.jai.rmi.HashSetState, com.sun.media.jai.rmi.RenderingKeyState, com.sun.media.jai.rmi.VectorState, com.sun.media.jai.rmi.RenderingHintsState, com.sun.media.jai.rmi.RenderContextState, com.sun.media.jai.rmi.ColorModelState, com.sun.media.jai.rmi.DataBufferState,
SerializableStateImpl | abstract public class SerializableStateImpl implements SerializableState(Code) | | Framework class for adding Serializer s based on
SerializableState implementations which support one or
more classes or interfaces.
Extending classes MUST:
- be public;
- provide a single public constructor with exactly the same signature as
the protected constructor of this class;
- provide a static override of
getSupportedClasses() ;
- implement the (de)serialization methods
writeObject()
and readObject() ; and
- add the class to
SerializerImpl.registerSerializers() as
registerSerializers(MySerializableState.class);
since: 1.1 |
SerializableStateImpl | protected SerializableStateImpl(Class c, Object o, RenderingHints h)(Code) | | Constructor. All subclasses MUST have exactly ONE constructor with
the SAME signature as this constructor.
|
getSupportedClasses | public static Class[] getSupportedClasses()(Code) | | Returns the classes supported by this SerializableState.
Subclasses MUST override this method with their own STATIC method.
|
permitsSubclasses | public static boolean permitsSubclasses()(Code) | | Whether the SerializableStateImpl permits its Serializer to
serialize subclasses of the supported class(es).
Subclasses SHOULD override this method to return "true" with their
own STATIC method IF AND ONLY IF they support subclass serialization.
|
|
|