|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataArray
Data Array
Method Summary | |
---|---|
byte[] |
get(int index)
Gets data at a specified index. |
int |
get(int index,
byte[] dst)
Gets data at a specified index into a byte array. |
int |
get(int index,
byte[] dst,
int offset)
Gets data at a specified index into a byte array. |
int |
getLength(int index)
|
boolean |
hasData(int index)
|
void |
set(int index,
byte[] data,
int offset,
int length,
long scn)
Sets data at a specified index. |
void |
set(int index,
byte[] data,
long scn)
Sets data at a specified index. |
int |
transferTo(int index,
WritableByteChannel channel)
Transfers data at a given index to a writable file channel. |
Methods inherited from interface krati.array.Array |
---|
clear, hasIndex, length |
Method Detail |
---|
boolean hasData(int index)
true
if data exists at a given index. Otherwise, false
.int getLength(int index)
byte[] get(int index)
index
- data index in DataArray
int get(int index, byte[] dst)
index
- data index in DataArraydst
- the byte array to write to
int get(int index, byte[] dst, int offset)
index
- data index in DataArraydst
- the byte array to write tooffset
- the offset of byte array from where data will be written
void set(int index, byte[] data, long scn) throws Exception
index
- data index in DataArraydata
- data to write to DataArrayscn
-
Exception
void set(int index, byte[] data, int offset, int length, long scn) throws Exception
index
- data index in DataArraydata
- data to write to DataArrayoffset
- the offset of the data array to start readlength
- the length of data to read from the data arrayscn
-
Exception
int transferTo(int index, WritableByteChannel channel)
index
- data index in DataArraychannel
- channel to transfer data to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |