public class ByteChannelWrapper extends Object implements ByteChannel
| Constructor and Description |
|---|
ByteChannelWrapper(IDataChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
int |
write(ByteBuffer src) |
public ByteChannelWrapper(IDataChannel channel)
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 WritableByteChannelIOExceptionCopyright © 2019 Tecgraf/PUC-Rio. All rights reserved.