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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(SocketAddress local) requires Java 7booleanconnect(SocketAddress remote) boolean<T> TgetOption(SocketOption<T> name) new in Java 7voidvoidimplConfigureBlocking(boolean block) booleanbooleanintread(ByteBuffer src) longread(ByteBuffer[] srcs, int offset, int length) <T> SocketChannelsetOption(SocketOption<T> name, T value) requires Java 7new in Java 7new in Java 7socket()Set<SocketOption<?>>intwrite(ByteBuffer src) longwrite(ByteBuffer[] srcs, int offset, int length) Methods inherited from class java.nio.channels.SocketChannel
open, open, open, read, validOps, writeMethods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
SSLSocketChannel
-
-
Method Details
-
socket
- Specified by:
socketin classSocketChannel
-
connect
- Specified by:
connectin classSocketChannel
-
finishConnect
public boolean finishConnect()- Specified by:
finishConnectin classSocketChannel
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin classSocketChannel
-
isConnectionPending
public boolean isConnectionPending()- Specified by:
isConnectionPendingin classSocketChannel
-
getRemoteAddress
new in Java 7- Specified by:
getRemoteAddressin classSocketChannel
-
shutdownInput
new in Java 7- Specified by:
shutdownInputin classSocketChannel- Throws:
IOException
-
shutdownOutput
new in Java 7- Specified by:
shutdownOutputin classSocketChannel- Throws:
IOException
-
setOption
requires Java 7- Specified by:
setOptionin interfaceNetworkChannel- Specified by:
setOptionin classSocketChannel
-
bind
requires Java 7- Specified by:
bindin interfaceNetworkChannel- Specified by:
bindin classSocketChannel
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin classSocketChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceScatteringByteChannel- Specified by:
readin classSocketChannel
-
write
- Specified by:
writein interfaceWritableByteChannel- Specified by:
writein classSocketChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceGatheringByteChannel- Specified by:
writein classSocketChannel
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannelin classAbstractSelectableChannel- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlockingin classAbstractSelectableChannel- Throws:
IOException
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceNetworkChannel- Specified by:
getLocalAddressin classSocketChannel
-
getOption
-
supportedOptions
-