public class RewindableReadableByteChannel
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel
| Constructor and Description |
|---|
RewindableReadableByteChannel(java.nio.channels.ReadableByteChannel readableByteChannel,
int bufferCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(java.nio.ByteBuffer dst) |
void |
rewind() |
public RewindableReadableByteChannel(java.nio.channels.ReadableByteChannel readableByteChannel,
int bufferCapacity)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionReadableByteChannel.read(ByteBuffer)public void rewind()
public boolean isOpen()
isOpen in interface java.nio.channels.ChannelChannel.isOpen()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionChannel.close()Copyright © 2020. All rights reserved.