class SSLSocketChannel extends SocketChannel
| Constructor and Description |
|---|
SSLSocketChannel(SSLSocket socket) |
| Modifier and Type | Method and Description |
|---|---|
SocketChannel |
bind(SocketAddress local)
requires Java 7
|
boolean |
connect(SocketAddress remote) |
boolean |
finishConnect() |
SocketAddress |
getLocalAddress() |
<T> T |
getOption(SocketOption<T> name) |
SocketAddress |
getRemoteAddress()
new in Java 7
|
void |
implCloseSelectableChannel() |
void |
implConfigureBlocking(boolean block) |
boolean |
isConnected() |
boolean |
isConnectionPending() |
int |
read(ByteBuffer src) |
long |
read(ByteBuffer[] srcs,
int offset,
int length) |
<T> SocketChannel |
setOption(SocketOption<T> name,
T value)
requires Java 7
|
SocketChannel |
shutdownInput()
new in Java 7
|
SocketChannel |
shutdownOutput()
new in Java 7
|
Socket |
socket() |
Set<SocketOption<?>> |
supportedOptions() |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenpublic SSLSocketChannel(SSLSocket socket)
public SocketChannel bind(SocketAddress local)
bind in interface NetworkChannelbind in class SocketChannelpublic boolean connect(SocketAddress remote)
connect in class SocketChannelpublic boolean finishConnect()
finishConnect in class SocketChannelpublic SocketAddress getLocalAddress()
getLocalAddress in interface NetworkChannelgetLocalAddress in class SocketChannelpublic <T> T getOption(SocketOption<T> name)
public SocketAddress getRemoteAddress()
getRemoteAddress in class SocketChannelpublic void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOExceptionpublic void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic boolean isConnected()
isConnected in class SocketChannelpublic boolean isConnectionPending()
isConnectionPending in class SocketChannelpublic int read(ByteBuffer src) throws IOException
read in interface ReadableByteChannelread in class SocketChannelIOExceptionpublic long read(ByteBuffer[] srcs, int offset, int length)
read in interface ScatteringByteChannelread in class SocketChannelpublic <T> SocketChannel setOption(SocketOption<T> name, T value)
setOption in interface NetworkChannelsetOption in class SocketChannelpublic SocketChannel shutdownInput() throws IOException
shutdownInput in class SocketChannelIOExceptionpublic SocketChannel shutdownOutput() throws IOException
shutdownOutput in class SocketChannelIOExceptionpublic Socket socket()
socket in class SocketChannelpublic Set<SocketOption<?>> supportedOptions()
public int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class SocketChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length)
write in interface GatheringByteChannelwrite in class SocketChannel