public class AbstractWrappedByteChannel extends java.lang.Object implements WrappedByteChannel
| Constructor and Description |
|---|
AbstractWrappedByteChannel(java.nio.channels.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(java.nio.ByteBuffer dst) |
int |
readMore(java.nio.ByteBuffer dst)
This function does not read data from the underlying channel at all.
|
int |
write(java.nio.ByteBuffer src) |
void |
writeMore() |
public AbstractWrappedByteChannel(java.nio.channels.ByteChannel towrap)
public AbstractWrappedByteChannel(WrappedByteChannel towrap)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic boolean isNeedWrite()
isNeedWrite in interface WrappedByteChannelpublic void writeMore()
throws java.io.IOException
writeMore in interface WrappedByteChanneljava.io.IOExceptionpublic boolean isNeedRead()
WrappedByteChannelisNeedRead in interface WrappedByteChannelReadableByteChannel.read(ByteBuffer),
WrappedByteChannel.readMore(ByteBuffer)public int readMore(java.nio.ByteBuffer dst)
throws javax.net.ssl.SSLException
WrappedByteChannelReadableByteChannel.read(ByteBuffer).readMore in interface WrappedByteChanneljavax.net.ssl.SSLExceptionpublic boolean isBlocking()
isBlocking in interface WrappedByteChannel