-
Method Summary
boolean
boolean
checks for double occurences
void
void
void
void
iterator for the file elements
void
void
int
length of file piece at pos
boolean
byte[]
Reads data at offset from file and returns it
int
void
void
void
long
long
write compressed to file.
-
Method Details
-
-
transactionCommit
commit transaction
- Throws:
IOException
-
transactionRollback
rollback transaction
- Throws:
IOException
-
create
Create a file. If it exists it will be cleared. File has a header of 32 bytes
- Throws:
IOException
EDBException
-
open
Open an existing file. Return true if successful.
- Returns:
- Throws:
IOException
-
checkSanity1
boolean checkSanity1()
checks for double occurences
- Returns:
-
checkSanity
boolean checkSanity()
checks free space list
- Returns:
-
read
Reads data at offset from file and returns it
- Parameters:
offset
-
- Returns:
- Throws:
IOException
-
free
Frees up space at offset
- Parameters:
offset
-
- Throws:
IOException
-
-
-
readInt
read integer at position
- Parameters:
position
-
- Returns:
- Throws:
IOException
-
write
write data into file. Returns address of data
- Parameters:
data
-
- Returns:
- Throws:
IOException
-
writeCompressed
long writeCompressed(byte[] data,
int originalLength)
throws IOException
write compressed to file. Returns address of data
- Parameters:
data
-
originalLength
-
- Returns:
- Throws:
IOException
-
-
length
length of file piece at pos
- Parameters:
pos
-
- Returns:
- Throws:
IOException
-
-
elements
iterator for the file elements
- Returns: