|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.sockets.SocketWrapper
public class SocketWrapper
Implements methods common to both client and server sockets. It provides common methods for obtaining input and output streams on both socket types as well as closing the socket. This class works around the fact that the Java NIO Channel provides an incomplete abstraction for networking that does not support SSL operation.
| Field Summary | |
|---|---|
protected java.net.Socket |
socket
|
| Method Summary | |
|---|---|
void |
close()
Close socket. |
java.io.InputStream |
getInputStream()
Returns an input stream that can read data from the socket. |
java.io.OutputStream |
getOutputStream()
Returns an output stream that can write data to the socket. |
java.net.Socket |
getSocket()
Returns the socket. |
void |
setSocket(java.net.Socket socket)
Sets the socket. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.net.Socket socket
| Method Detail |
|---|
public void setSocket(java.net.Socket socket)
public java.net.Socket getSocket()
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionpublic void close()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||