001 /* 002 * cs101.net.Wire 003 * 004 * Developed for "Rethinking CS101", a project of Lynn Andrea Stein's AP Group. 005 * For more information, see <a href="http://www.ai.mit.edu/projects/cs101/">the 006 * CS101 homepage</a> or email <las@ai.mit.edu>. 007 * 008 * Copyright (C) 1998 Massachusetts Institute of Technology. 009 * Please do not redistribute without obtaining permission. 010 */ 011 012 package cs101.net; 013 014 /** 015 * A generic interface for stream-like things that can read and write 016 * objects. 017 * 018 * <P>Copyright (c) 1998 Massachusetts Institute of Technology 019 * 020 * @author Todd C. Parnell, tpanrell@ai.mit.edu 021 * @author Lynn Andrea Stein, las@ai.mite.du 022 * @version $Id: Wire.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $ 023 */ 024 public interface Wire { 025 /** Read the next object. Block if no object is available. */ 026 public Object readObject(); 027 028 /** Write an object. Blocks if no space is available to write to */ 029 public void writeObject(Object obj); 030 } 031 032 /* 033 * $Log: Wire.java,v $ 034 * Revision 1.1.1.1 2002/06/05 21:56:32 root 035 * CS101 comes to Olin finally. 036 * 037 * Revision 1.6 1998/07/24 17:13:48 tparnell 038 * Placate new javadoc behavior 039 * 040 * Revision 1.5 1998/07/22 18:18:10 tparnell 041 * move from util to net 042 * 043 * Revision 1.4 1998/07/20 22:29:15 tparnell 044 * added javadoc and logging 045 * 046 */ 047 048 049