games.strategy.net
Class SocketStreams

java.lang.Object
  extended by games.strategy.net.SocketStreams

public class SocketStreams
extends java.lang.Object

A holder for all the streams associated with a socket.

We need this because we can only buffer a socket once (otherwise you have issues when the first buffer reads bytes that weren't meant for it)

Author:
sgb

Constructor Summary
SocketStreams(java.net.Socket s)
           
 
Method Summary
 java.io.BufferedInputStream getBufferedIn()
           
 java.io.BufferedOutputStream getBufferedOut()
           
 java.io.InputStream getSocketIn()
           
 java.io.OutputStream getSocketOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketStreams

public SocketStreams(java.net.Socket s)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getBufferedIn

public java.io.BufferedInputStream getBufferedIn()

getBufferedOut

public java.io.BufferedOutputStream getBufferedOut()

getSocketIn

public java.io.InputStream getSocketIn()

getSocketOut

public java.io.OutputStream getSocketOut()