Package net.i2p.sam
Class SSLSocketChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,GatheringByteChannel
,InterruptibleChannel
,NetworkChannel
,ReadableByteChannel
,ScatteringByteChannel
,WritableByteChannel
Simple wrapper for a SSLSocket.
Cannot be used for asynch ops.
- Since:
- 0.9.24
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(SocketAddress local) requires Java 7boolean
connect
(SocketAddress remote) boolean
<T> T
getOption
(SocketOption<T> name) new in Java 7void
void
implConfigureBlocking
(boolean block) boolean
boolean
int
read
(ByteBuffer src) long
read
(ByteBuffer[] srcs, int offset, int length) <T> SocketChannel
setOption
(SocketOption<T> name, T value) requires Java 7new in Java 7new in Java 7socket()
Set<SocketOption<?>>
int
write
(ByteBuffer src) long
write
(ByteBuffer[] srcs, int offset, int length) Methods inherited from class java.nio.channels.SocketChannel
open, open, open, read, validOps, write
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
Methods inherited from class java.nio.channels.SelectableChannel
register
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
SSLSocketChannel
-
-
Method Details
-
socket
- Specified by:
socket
in classSocketChannel
-
connect
- Specified by:
connect
in classSocketChannel
-
finishConnect
public boolean finishConnect()- Specified by:
finishConnect
in classSocketChannel
-
isConnected
public boolean isConnected()- Specified by:
isConnected
in classSocketChannel
-
isConnectionPending
public boolean isConnectionPending()- Specified by:
isConnectionPending
in classSocketChannel
-
getRemoteAddress
new in Java 7- Specified by:
getRemoteAddress
in classSocketChannel
-
shutdownInput
new in Java 7- Specified by:
shutdownInput
in classSocketChannel
- Throws:
IOException
-
shutdownOutput
new in Java 7- Specified by:
shutdownOutput
in classSocketChannel
- Throws:
IOException
-
setOption
requires Java 7- Specified by:
setOption
in interfaceNetworkChannel
- Specified by:
setOption
in classSocketChannel
-
bind
requires Java 7- Specified by:
bind
in interfaceNetworkChannel
- Specified by:
bind
in classSocketChannel
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Specified by:
read
in classSocketChannel
- Throws:
IOException
-
read
- Specified by:
read
in interfaceScatteringByteChannel
- Specified by:
read
in classSocketChannel
-
write
- Specified by:
write
in interfaceWritableByteChannel
- Specified by:
write
in classSocketChannel
- Throws:
IOException
-
write
- Specified by:
write
in interfaceGatheringByteChannel
- Specified by:
write
in classSocketChannel
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannel
in classAbstractSelectableChannel
- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlocking
in classAbstractSelectableChannel
- Throws:
IOException
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceNetworkChannel
- Specified by:
getLocalAddress
in classSocketChannel
-
getOption
-
supportedOptions
-