Methods Summary |
---|
public byte[] | getData()Returns a reference to the byte array. The returned value should
be treated as read-only, and only the portion specified by the
values of getOffset and getLength should
be used.
return data;
|
public int | getLength()Returns the length of the data of interest within the byte
array returned by getData .
return length;
|
public int | getOffset()Returns the offset within the byte array returned by
getData at which the data of interest start.
return offset;
|
public void | setData(byte[] data)Updates the array reference that will be returned by subsequent calls
to the getData method.
this.data = data;
|
public void | setLength(int length)Updates the value that will be returned by subsequent calls
to the getLength method.
this.length = length;
|
public void | setOffset(int offset)Updates the value that will be returned by subsequent calls
to the getOffset method.
this.offset = offset;
|