public class AbstractWrappedByteChannel extends java.lang.Object implements WrappedByteChannel
| 构造器和说明 |
|---|
AbstractWrappedByteChannel(java.nio.channels.ByteChannel towrap) |
AbstractWrappedByteChannel(WrappedByteChannel towrap) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
isBlocking() |
boolean |
isNeedRead() |
boolean |
isNeedWrite() |
boolean |
isOpen() |
int |
read(java.nio.ByteBuffer dst) |
int |
readMore(java.nio.ByteBuffer dst) |
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 在接口中 java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic boolean isOpen()
isOpen 在接口中 java.nio.channels.Channelpublic void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在接口中 java.nio.channels.Channeljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write 在接口中 java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic boolean isNeedWrite()
isNeedWrite 在接口中 WrappedByteChannelpublic void writeMore()
throws java.io.IOException
writeMore 在接口中 WrappedByteChanneljava.io.IOExceptionpublic boolean isNeedRead()
isNeedRead 在接口中 WrappedByteChannelpublic int readMore(java.nio.ByteBuffer dst)
throws javax.net.ssl.SSLException
readMore 在接口中 WrappedByteChanneljavax.net.ssl.SSLExceptionpublic boolean isBlocking()
isBlocking 在接口中 WrappedByteChannel