org.mitre.midiki.workshop
Class SocketUtil
java.lang.Object
|
+--org.mitre.midiki.workshop.SocketUtil
- public class SocketUtil
- extends java.lang.Object
A shorthand way to create PrintStreams and
buffered/unbuffered DataInputStreams associated
with a socket.
This appears in Core Web Programming from
Prentice Hall Publishers, and may be freely used
or adapted. 1997 Marty Hall, hall@apl.jhu.edu.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketUtil
public SocketUtil(java.net.Socket s)
getDataStream
public java.io.DataInputStream getDataStream()
throws java.io.IOException
getUnbufferedDataStream
public java.io.DataInputStream getUnbufferedDataStream()
throws java.io.IOException
getPrintStream
public java.io.PrintStream getPrintStream()
throws java.io.IOException