org.openmdx.base.collection
Interface Reconstructable

All Known Implementing Classes:
MarshallingRequestedList, MarshallingSequentialList, RequestedList

public interface Reconstructable

Reconstructable objects are able to write part of their state to an OutputStream and re-establishing it from an InputStream during reconstruction.

The corresponding InputStream is usually the first argument of one of the object's constructors, which can't be enforced by an interface in the JAVA language.


Method Summary
 void write(OutputStream stream)
          Write part of a reconstructable object's state to an OutputStream (optional operation).
 

Method Detail

write

void write(OutputStream stream)
           throws ServiceException
Write part of a reconstructable object's state to an OutputStream (optional operation).

Parameters:
stream - OutputStream that holds part of a reconstructable object's state.
Throws:
ServiceException - if partial state streaming fails
ServiceException - NOT_SUPPORTED if the instance is not reconstructable


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.