client.net
Class ConnectionMediator

java.lang.Object
  extended by client.net.ConnectionMediator

public class ConnectionMediator
extends java.lang.Object


Constructor Summary
ConnectionMediator(ConnectionProvider con, java.lang.String ip, int port, java.lang.String[] initialMsgs)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 java.net.Socket getSocket()
           
static void sendMessages(java.io.BufferedWriter bw, java.lang.String[] msgs)
           
static void sendMessages(java.io.OutputStream os, java.lang.String[] msgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionMediator

public ConnectionMediator(ConnectionProvider con,
                          java.lang.String ip,
                          int port,
                          java.lang.String[] initialMsgs)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()

getInputStream

public java.io.InputStream getInputStream()

getSocket

public java.net.Socket getSocket()

sendMessages

public static void sendMessages(java.io.BufferedWriter bw,
                                java.lang.String[] msgs)
                         throws java.io.IOException
Throws:
java.io.IOException

sendMessages

public static void sendMessages(java.io.OutputStream os,
                                java.lang.String[] msgs)
                         throws java.io.IOException
Throws:
java.io.IOException