public interface ByteBufferView
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
ByteBufferView |
duplicate() |
byte |
get() |
ByteBufferView |
get(byte[] dst) |
int |
getInt() |
short |
getShort() |
boolean |
hasRemaining() |
int |
limit() |
ByteBufferView |
limit(int newLimit) |
int |
position() |
ByteBufferView |
position(int newPosition) |
int |
remaining() |
void |
transferTo(ByteBuffer buffer) |
int |
transferTo(FileChannel fc,
long offset)
Transfer the contents of this byte buffer view to the file channel passed in.
|
int position()
ByteBufferView position(int newPosition)
int limit()
ByteBufferView limit(int newLimit)
int capacity()
boolean hasRemaining()
int remaining()
byte get()
short getShort()
int getInt()
ByteBufferView get(byte[] dst)
void transferTo(ByteBuffer buffer)
int transferTo(FileChannel fc, long offset) throws IOException
fc
- the file channeloffset
- the offset in the file channelIOException
- on failure to write to the file channelByteBufferView duplicate()
Copyright © 2016–2021. All rights reserved.