readSeek(long item)
Seeks at the position of the item, the item must exist in this array else an exception is thrown.
void
writeSeek(long item)
Seeks at the item position in a file and increases the number of items by 1 (if an expansion happened),
because it assumes that we will write some data beyond the end of file.
public Array(java.lang.String location,
int itemsize,
byte initValue)
Parameters:
location - the location where the file will be created
itemsize - the size of one array element in bytes
initValue - the byte value used as an initializator of empty bytes in the array
Method Detail
writeSeek
public void writeSeek(long item)
throws java.io.IOException
Seeks at the item position in a file and increases the number of items by 1 (if an expansion happened),
because it assumes that we will write some data beyond the end of file.
Throws:
java.io.IOException
readSeek
public void readSeek(long item)
throws java.io.IOException
Seeks at the position of the item, the item must exist in this array else an exception is thrown.