public static interface NetSocket.NetSocketFactory
| Modifier and Type | Method and Description |
|---|---|
NetSocket |
create(java.net.Socket socket)
Create NetSocket which uses object streams for I/O
|
NetSocket |
create(java.nio.channels.SocketChannel channel)
Create NetSocket which uses insecure NIO SocketChannel for I/O
|
NetSocket |
create(javax.net.ssl.SSLEngine engine,
java.nio.channels.SocketChannel channel)
Create NetSocket which uses SSL over NIO SocketChannel for I/O
|
NetSocket create(java.net.Socket socket) throws java.io.IOException
socket - Underlying Socketjava.io.IOException - on errorNetSocket create(java.nio.channels.SocketChannel channel) throws java.io.IOException
channel - Underlying NIO SocketChanneljava.io.IOException - on errorNetSocket create(javax.net.ssl.SSLEngine engine, java.nio.channels.SocketChannel channel) throws java.io.IOException
engine - SSLEngine instancechannel - Underlying NIO SocketChanneljava.io.IOException - on error