@Deprecated public class AbstractWrappedByteChannel extends Object implements WrappedByteChannel
| Constructor and Description |
|---|
AbstractWrappedByteChannel(ByteChannel towrap)
Deprecated.
|
AbstractWrappedByteChannel(WrappedByteChannel towrap)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
boolean |
isBlocking()
Deprecated.
This function returns the blocking state of the channel
|
boolean |
isNeedRead()
Deprecated.
returns whether readMore should be called to fetch data which has been decoded but not yet been
returned.
|
boolean |
isNeedWrite()
Deprecated.
returns whether writeMore should be called write additional data.
|
boolean |
isOpen()
Deprecated.
|
int |
read(ByteBuffer dst)
Deprecated.
|
int |
readMore(ByteBuffer dst)
Deprecated.
This function does not read data from the underlying channel at all.
|
int |
write(ByteBuffer src)
Deprecated.
|
void |
writeMore()
Deprecated.
Gets called when
WrappedByteChannel.isNeedWrite() ()} requires a additional rite |
@Deprecated public AbstractWrappedByteChannel(ByteChannel towrap)
@Deprecated 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()
WrappedByteChannelisNeedWrite in interface WrappedByteChannelpublic void writeMore()
throws IOException
WrappedByteChannelWrappedByteChannel.isNeedWrite() ()} requires a additional ritewriteMore in interface WrappedByteChannelIOException - may be thrown due to an error while writingpublic boolean isNeedRead()
WrappedByteChannelisNeedRead in interface WrappedByteChannelReadableByteChannel.read(ByteBuffer),
WrappedByteChannel.readMore(ByteBuffer)public int readMore(ByteBuffer dst) throws IOException
WrappedByteChannelReadableByteChannel.read(ByteBuffer).readMore in interface WrappedByteChanneldst - the destiny of the readIOException - when a error occurred during unwrappingpublic boolean isBlocking()
WrappedByteChannelisBlocking in interface WrappedByteChannelCopyright © 2022. All rights reserved.