public class AbstractWrappedByteChannel extends Object implements WrappedByteChannel
| Constructor and Description |
|---|
AbstractWrappedByteChannel(ByteChannel towrap) |
AbstractWrappedByteChannel(WrappedByteChannel towrap) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isBlocking() |
boolean |
isNeedRead()
returns whether readMore should be called to fetch data which has been decoded but not yet been returned.
|
boolean |
isNeedWrite() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
int |
readMore(ByteBuffer dst)
This function does not read data from the underlying channel at all.
|
int |
write(ByteBuffer src) |
void |
writeMore() |
public AbstractWrappedByteChannel(ByteChannel towrap)
public AbstractWrappedByteChannel(WrappedByteChannel towrap)
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic boolean isNeedWrite()
isNeedWrite in interface WrappedByteChannelpublic void writeMore()
throws IOException
writeMore in interface WrappedByteChannelIOExceptionpublic boolean isNeedRead()
WrappedByteChannelisNeedRead in interface WrappedByteChannelReadableByteChannel.read(ByteBuffer),
WrappedByteChannel.readMore(ByteBuffer)public int readMore(ByteBuffer dst) throws SSLException
WrappedByteChannelReadableByteChannel.read(ByteBuffer).readMore in interface WrappedByteChannelSSLExceptionpublic boolean isBlocking()
isBlocking in interface WrappedByteChannelCopyright © 2013. All Rights Reserved.