Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, NetworkChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannelclass SSLSocketChannel extends SocketChannel
| Constructor | Description |
|---|---|
SSLSocketChannel(SSLSocket socket) |
| Modifier and Type | Method | 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) |
begin, close, end, isOpenblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterpublic SSLSocketChannel(SSLSocket socket)
public Socket socket()
socket in class SocketChannelpublic boolean connect(SocketAddress remote)
connect in class SocketChannelpublic boolean finishConnect()
finishConnect in class SocketChannelpublic boolean isConnected()
isConnected in class SocketChannelpublic boolean isConnectionPending()
isConnectionPending in class SocketChannelpublic SocketAddress getRemoteAddress()
getRemoteAddress in class SocketChannelpublic SocketChannel shutdownInput() throws IOException
shutdownInput in class SocketChannelIOExceptionpublic SocketChannel shutdownOutput() throws IOException
shutdownOutput in class SocketChannelIOExceptionpublic <T> SocketChannel setOption(SocketOption<T> name, T value)
setOption in interface NetworkChannelsetOption in class SocketChannelpublic SocketChannel bind(SocketAddress local)
bind in interface NetworkChannelbind 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 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 SocketChannelpublic void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOExceptionpublic void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic SocketAddress getLocalAddress()
getLocalAddress in interface NetworkChannelgetLocalAddress in class SocketChannelpublic <T> T getOption(SocketOption<T> name)
public Set<SocketOption<?>> supportedOptions()