Package net.i2p.sam
Class SSLSocketChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,GatheringByteChannel,InterruptibleChannel,NetworkChannel,ReadableByteChannel,ScatteringByteChannel,WritableByteChannel
class SSLSocketChannel extends SocketChannel
Simple wrapper for a SSLSocket.
Cannot be used for asynch ops.
- Since:
- 0.9.24
-
Constructor Summary
Constructors Constructor Description SSLSocketChannel(SSLSocket socket) -
Method Summary
Modifier and Type Method Description SocketChannelbind(SocketAddress local)requires Java 7booleanconnect(SocketAddress remote)booleanfinishConnect()SocketAddressgetLocalAddress()<T> TgetOption(SocketOption<T> name)SocketAddressgetRemoteAddress()new in Java 7voidimplCloseSelectableChannel()voidimplConfigureBlocking(boolean block)booleanisConnected()booleanisConnectionPending()intread(ByteBuffer src)longread(ByteBuffer[] srcs, int offset, int length)<T> SocketChannelsetOption(SocketOption<T> name, T value)requires Java 7SocketChannelshutdownInput()new in Java 7SocketChannelshutdownOutput()new in Java 7Socketsocket()Set<SocketOption<?>>supportedOptions()intwrite(ByteBuffer src)longwrite(ByteBuffer[] srcs, int offset, int length)Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
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
-