001 /*
002 * $Id: DefaultStringHandler.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $
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) 1996 Massachusetts Institute of Technology.
009 * Please do not redistribute without obtaining permission.
010 */
011 package cs101.util;
012
013 /**
014 * A default StringHandler. Just prints things to System.out.
015 * <p>
016 * Copyright (c) 1998 Massachusetts Institute of Technology
017 *
018 * @see cs101.net.Client
019 * @see cs101.util.StringHandler
020 *
021 * @author Lynn Andrea Stein, las@ai.mit.edu
022 * @version $Id: DefaultStringHandler.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $
023 */
024
025 public class DefaultStringHandler implements StringHandler {
026
027 public DefaultStringHandler () {
028 super();
029 }
030
031 /**
032 * Just print the string to System.out.
033 */
034 public void handleString( String s ) {
035 System.out.println("<stringhandler got \""+ s + "\" >");
036 System.out.flush();
037 }
038
039 }
040
041 /*
042 * $Log: DefaultStringHandler.java,v $
043 * Revision 1.1.1.1 2002/06/05 21:56:32 root
044 * CS101 comes to Olin finally.
045 *
046 * Revision 1.3 1998/07/24 17:19:24 tparnell
047 * Placate new javadoc behavior
048 *
049 * Revision 1.2 1998/07/23 14:54:48 tparnell
050 * javadoc fix
051 *
052 * Revision 1.1 1998/03/13 22:18:12 tparnell
053 * Import from server crash. I think the src and class files match up.
054 *
055 */
056