jmri.web.miniserver
Class SocketUtil
java.lang.Object
jmri.web.miniserver.SocketUtil
public class SocketUtil
- extends Object
A shorthand way to create BufferedReaders and
PrintWriters associated with a Socket.
Adapted from Core Web Programming from
Prentice Hall and Sun Microsystems Press,
http://www.corewebprogramming.com/.
© 2001 Marty Hall and Larry Brown;
may be freely used or adapted.
- Author:
- Modifications by Bob Jacobsen Copyright 2005, 2006, 2008
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketUtil
public SocketUtil()
getReader
public static BufferedReader getReader(Socket s)
throws IOException
- Make a BufferedReader to get incoming data.
- Throws:
IOException
getWriter
public static PrintWriter getWriter(Socket s)
throws IOException
- Make a PrintWriter to send outgoing data.
This PrintWriter will automatically flush stream
when println is called.
- Throws:
IOException
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: