package util.net;


/** 
 * A generic interface for stream-like things that can read and write
 * objects.
 */
public interface Wire
{
    /** 
     * Read the next object.  Block if no object is available.
     */
    public Object readObject ();
  
    /** 
     * Write an object.  Blocks if no space is available to write to 
     */
    public void writeObject (Object obj);
}
