com.twistedmatrix.util
Class SocketStreamPair

java.lang.Object
  |
  +--com.twistedmatrix.util.SocketStreamPair
All Implemented Interfaces:
StreamPair

public class SocketStreamPair
extends java.lang.Object
implements StreamPair

Holds a related pair of streams for a socket, the input stream and the output stream.


Constructor Summary
SocketStreamPair(java.net.Socket sock)
           
 
Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketStreamPair

public SocketStreamPair(java.net.Socket sock)
                 throws java.io.IOException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface StreamPair

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface StreamPair

close

public void close()
Specified by:
close in interface StreamPair