public class Array extends Object
Modifier and Type | Field and Description |
---|---|
long |
size |
Constructor and Description |
---|
Array(String location,
int itemsize,
byte initValue) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
destroy() |
DataInputOutputStream |
getRf() |
void |
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(String location, int itemsize, byte initValue)
location
- the location where the file will be createditemsize
- the size of one array element in bytesinitValue
- the byte value used as an initializator of empty bytes in the arraypublic void writeSeek(long item) throws IOException
IOException
public void readSeek(long item) throws IOException
IOException
public void destroy()
public void close()
public final DataInputOutputStream getRf()
Copyright © 2016 Egothor. All Rights Reserved.