package org.wikiwebserver.distribute.interfaces;

import java.io.*;

/**
 * A simple interface for building persistent objects on
 * platforms where serialization is not available.
 */

public interface Persistable {

    /**
     * Called to persist an object.
     */
    public void persist(DataOutputStream out) throws IOException;

    /**
     * Called to resurrect a persistent object.
     */
    public void resurrect(DataInputStream in) throws IOException;
}


