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, register
register
begin, close, end, isOpen
public SSLSocketChannel(SSLSocket socket)
public Socket socket()
socket
in class SocketChannel
public boolean connect(SocketAddress remote)
connect
in class SocketChannel
public boolean finishConnect()
finishConnect
in class SocketChannel
public boolean isConnected()
isConnected
in class SocketChannel
public boolean isConnectionPending()
isConnectionPending
in class SocketChannel
public SocketAddress getRemoteAddress()
getRemoteAddress
in class SocketChannel
public SocketChannel shutdownInput() throws IOException
shutdownInput
in class SocketChannel
IOException
public SocketChannel shutdownOutput() throws IOException
shutdownOutput
in class SocketChannel
IOException
public <T> SocketChannel setOption(SocketOption<T> name, T value)
setOption
in interface NetworkChannel
setOption
in class SocketChannel
public SocketChannel bind(SocketAddress local)
bind
in interface NetworkChannel
bind
in class SocketChannel
public int read(ByteBuffer src) throws IOException
read
in interface ReadableByteChannel
read
in class SocketChannel
IOException
public long read(ByteBuffer[] srcs, int offset, int length)
read
in interface ScatteringByteChannel
read
in class SocketChannel
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class SocketChannel
IOException
public long write(ByteBuffer[] srcs, int offset, int length)
write
in interface GatheringByteChannel
write
in class SocketChannel
public void implCloseSelectableChannel() throws IOException
implCloseSelectableChannel
in class AbstractSelectableChannel
IOException
public void implConfigureBlocking(boolean block) throws IOException
implConfigureBlocking
in class AbstractSelectableChannel
IOException
public SocketAddress getLocalAddress()
getLocalAddress
in interface NetworkChannel
getLocalAddress
in class SocketChannel
public <T> T getOption(SocketOption<T> name)
public Set<SocketOption<?>> supportedOptions()