public class Buffer extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
length |
protected long |
offset |
Constructor and Description |
---|
Buffer(byte[] buf,
int length) |
Buffer(byte[] buf,
int length,
long offset) |
public Buffer(byte[] buf, int length)
buf
- the data buffer (always starts at 0)length
- length of the data in the bufferpublic Buffer(byte[] buf, int length, long offset)
buf
- the data buffer (always starts at 0)length
- length of the data in the bufferoffset
- offset of the data the buffer was read from.public byte[] getBuffer()
public int getLength()
public long getOffset()
Copyright © 2014. All rights reserved.