public class RewindableReadableByteChannel extends Object implements ReadableByteChannel
| Constructor and Description |
|---|
RewindableReadableByteChannel(ReadableByteChannel readableByteChannel,
int bufferCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
void |
rewind() |
public RewindableReadableByteChannel(ReadableByteChannel readableByteChannel, int bufferCapacity)
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionReadableByteChannel.read(ByteBuffer)public void rewind()
public boolean isOpen()
isOpen in interface ChannelChannel.isOpen()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionChannel.close()Copyright © 2019. All rights reserved.