public interface ReadTargetBuffer
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArray() |
ByteBuffer |
byteBuffer() |
WritableByteChannel |
byteChannel() |
int |
offset() |
void |
offset(int newOffset)
Sets the new offset in the buffer.
|
int |
readFromFile(RandomAccessFile file,
int length) |
int |
readFromInputStream(InputStream is,
int length) |
long |
remaining() |
void |
writeBytes(byte[] srcArray,
int srcOffset,
int length) |
void |
writeBytes(io.netty.buffer.ByteBuf buf) |
byte[] byteArray()
ByteBuffer byteBuffer()
int offset()
void offset(int newOffset)
newOffset
- the new offsetWritableByteChannel byteChannel()
long remaining()
void writeBytes(byte[] srcArray, int srcOffset, int length)
srcArray
- srcOffset
- length
- void writeBytes(io.netty.buffer.ByteBuf buf)
buf
- int readFromFile(RandomAccessFile file, int length) throws IOException
file
- length
- IOException
int readFromInputStream(InputStream is, int length) throws IOException
is
- length
- IOException
Copyright © 2023. All Rights Reserved.