public class SocketByteChannel extends Object implements ByteChannel
| Constructor and Description |
|---|
SocketByteChannel(SSLSocket sslSocket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
void |
shutdownInput()
Shutdown the connection for reading.
|
void |
shutdownOutput()
Shutdown the connection for writing.
|
int |
write(ByteBuffer src) |
public SocketByteChannel(SSLSocket sslSocket) throws IOException
IOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic void shutdownInput()
throws IOException
IOException - If some other I/O error occurs.public void shutdownOutput()
throws IOException
IOException - If some other I/O error occurs.Copyright © 2018 WSO2. All rights reserved.