| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.dao.impl.JEB2FileDatabase |
JEB database file ("*.jdb2") manager.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | FLAG_COMPRESS | This flags is used to specify that the record should be compressed | |||||||||
| int | FLAG_ENCRYPT | This flags is used to specify that the record should be encrypted | |||||||||
| int | FLAG_NONE | No flag | |||||||||
| int | MARKER | File header marker, little-endian: JDB2 |
|||||||||
| int | TYPE_PROJECT | Project block marker, little-endian: PRJ and 1-byte flags |
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| JEB2FileDatabase(String basedir) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
deleteFile(String key, int version)
Delete a file.
| ||||||||||
| IFileDatabaseReader |
getReader(String key)
@return
| ||||||||||
| IFileDatabaseWriter |
getWriter(String key)
@return
| ||||||||||
| boolean |
hasFile(String key, int version)
Determine if the database contains the given file.
| ||||||||||
| byte[] |
loadFile(String key, int version)
Retrieve the contents of a file.
| ||||||||||
| boolean |
saveFile(String key, int version, byte[] data)
Store the contents of a file.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.dao.IFileDatabase
| |||||||||||
This flags is used to specify that the record should be compressed
This flags is used to specify that the record should be encrypted
No flag
File header marker, little-endian: JDB2
Project block marker, little-endian: PRJ and 1-byte flags
Delete a file.
| key | file key |
|---|---|
| version | file version |
Determine if the database contains the given file.
| key | file key |
|---|---|
| version | file version |
Retrieve the contents of a file.
| key | file key |
|---|---|
| version | file version |
Store the contents of a file.
| key | file key |
|---|---|
| version | file version |
| data | file data |