com.go.trove.net
Class BufferedSocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--com.go.trove.net.FilteredSocket
              |
              +--com.go.trove.net.BufferedSocket

public class BufferedSocket
extends FilteredSocket

A convenient class for supporting buffering on socket I/O streams.

Version:
1 , 00/12/06
Author:
Brian S O'Neill

Fields inherited from class com.go.trove.net.FilteredSocket
mSocket
 
Constructor Summary
BufferedSocket(java.net.Socket s)
           
BufferedSocket(java.net.Socket s, int inputBufferSize, int outputBufferSize)
           
 
Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.net.Socket
getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedSocket

public BufferedSocket(java.net.Socket s)
               throws java.io.IOException

BufferedSocket

public BufferedSocket(java.net.Socket s,
                      int inputBufferSize,
                      int outputBufferSize)
               throws java.io.IOException
Parameters:
inputBufferSize - specify 0 for no buffering, -1 for default
outputBufferSize - specify 0 for no buffering, -1 for default
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.Socket

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.Socket

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.net.Socket