CS101 Package Problem Set Javadocs

cs101.net
Interface Wire

All Known Implementing Classes:
ClientWire, ServerWire

public interface Wire

A generic interface for stream-like things that can read and write objects.

Copyright (c) 1998 Massachusetts Institute of Technology

Version:
$Id: Wire.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $
Author:
Todd C. Parnell, tpanrell@ai.mit.edu, Lynn Andrea Stein, las@ai.mite.du

Method Summary
 java.lang.Object readObject()
          Read the next object.
 void writeObject(java.lang.Object obj)
          Write an object.
 

Method Detail

readObject

public java.lang.Object readObject()
Read the next object. Block if no object is available.


writeObject

public void writeObject(java.lang.Object obj)
Write an object. Blocks if no space is available to write to


CS101 Package Problem Set Javadocs