package cs101.util; /** * A generic interface for stream-like things that can * read and write objects. */ public interface Wire { /** * Read the next object. Blocks if no object is avaliable. */ public abstract Object getObject(); /** * Write an object. Blocks if no space is avaliable to write to. */ public abstract void putObject( Object obj ); }