001    
002    import java.io.IOException;
003    
004    
005    /**
006     * ObjectChannel.
007     * This interface defines a communication channel for objects.
008     * @author Heinz Kredel.
009     */
010    
011    public interface ObjectChannel {
012    
013      /**
014       * Sends an object.
015       */
016      public void send(Object v) throws IOException;
017    
018    
019      /**
020       * Receives an object.
021       */
022      public Object receive() throws IOException, ClassNotFoundException;
023    
024    
025      /**
026       * Closes the channel.
027       */
028      public void close();
029    
030    }