JHotDraw 6.0b1

org.jhotdraw.util
Interface Storable

All Known Subinterfaces:
ConnectionFigure, Connector, ContentProducer, Drawing, Figure, GeometricFigure, Layoutable, Layouter, LineDecoration, Locator
All Known Implementing Classes:
AbstractConnector, AbstractContentProducer, AbstractFigure, AbstractLineDecoration, AbstractLocator, AnimationDecorator, ArrowTip, AttributeFigure, AttributeFigureContentProducer, BorderDecorator, BouncingDrawing, ChopBoxConnector, ChopDiamondConnector, ChopEllipseConnector, ChopPolygonConnector, ColorContentProducer, ComponentFigure, CompositeFigure, ContentProducerRegistry, DecoratorFigure, DiamondFigure, DiamondFigureGeometricAdapter, ElbowConnection, EllipseFigure, EllipseFigureGeometricAdapter, FigureDataContentProducer, GraphicalCompositeFigure, GroupFigure, HTMLColorContentProducer, HTMLContentProducer, HTMLLayouter, HTMLTextAreaFigure, ImageFigure, LineConnection, LineFigure, LocatorConnector, MyEllipseFigure, MyFigure, NodeFigure, NodeFigure, NullConnector, NullFigure, NumberTextFigure, OffsetConnector, OffsetLocator, PeripheralLocator, PertDependency, PertFigure, PolygonFigure, PolygonFigureGeometricAdapter, PolyLineConnector, PolyLineFigure, RectangleFigure, RelativeLocator, ResourceContentProducer, RoundRectangleFigure, RoundRectangleGeometricAdapter, ShortestDistanceConnector, SimpleLayouter, StandardDrawing, StandardLayouter, TextAreaFigure, TextFigure, TextHolderContentProducer, TriangleFigure, TriangleFigureGeometricAdapter, URLContentProducer

public interface Storable

Interface that is used by StorableInput and StorableOutput to flatten and resurrect objects. Objects that implement this interface and that are resurrected by StorableInput have to provide a default constructor with no arguments.

See Also:
StorableInput, StorableOutput

Method Summary
 void read(StorableInput dr)
          Reads the object from the StorableInput.
 void write(StorableOutput dw)
          Writes the object to the StorableOutput.
 

Method Detail

write

void write(StorableOutput dw)
Writes the object to the StorableOutput.


read

void read(StorableInput dr)
          throws java.io.IOException
Reads the object from the StorableInput.

Throws:
java.io.IOException

JHotDraw 6.0b1