org.shlublu.javax.net
Class SocketIOStream

java.lang.Object
  |
  +--org.shlublu.javax.net.SocketIOStream
All Implemented Interfaces:
IOStream

public class SocketIOStream
extends java.lang.Object
implements IOStream

Creation : 28 oct 2001 Convenience class which helps to manage a socket's couple of streams

Since:
0.1

Constructor Summary
SocketIOStream(java.net.InetAddress addr, int iPort)
          Convenience ctor : create the socket
SocketIOStream(java.net.Socket sockGiven)
          Ctor
SocketIOStream(java.lang.String strAddr, int iPort)
          Convenience ctor : create the socket
 
Method Summary
 java.io.InputStream getInputStream()
          Return the socket's input stream
 java.io.OutputStream getOutputStream()
          Return the socket's output stream
 java.net.Socket getSocket()
          Return the socket itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketIOStream

public SocketIOStream(java.net.Socket sockGiven)
Ctor

SocketIOStream

public SocketIOStream(java.net.InetAddress addr,
                      int iPort)
               throws SocketIOStreamException
Convenience ctor : create the socket
Throws:
SocketIOStreamException - if a problem occurs while creating the socket

SocketIOStream

public SocketIOStream(java.lang.String strAddr,
                      int iPort)
               throws SocketIOStreamException
Convenience ctor : create the socket
Throws:
SocketIOStreamException - if a problem occurs while creating the socket
Method Detail

getInputStream

public final java.io.InputStream getInputStream()
                                         throws SocketIOStreamException
Return the socket's input stream
Specified by:
getInputStream in interface IOStream
Throws:
SocketIOStreamException - if a problem occurs while accessing the socket's stream

getOutputStream

public final java.io.OutputStream getOutputStream()
                                           throws SocketIOStreamException
Return the socket's output stream
Specified by:
getOutputStream in interface IOStream
Throws:
SocketIOStreamException - if a problem occurs while accessing the socket's stream

getSocket

public final java.net.Socket getSocket()
Return the socket itself