java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.dao.impl.JDB2Reader |
JDB2 (JEB saved project database) record reader. A JDB2 is made of records.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | JDB2Reader.RecordDescription | Definition of a JDB2 record. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JDB2Reader(File f) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | close() | ||||||||||
File |
getBackingFile()
Retrieve the backing file, if any.@return
| ||||||||||
int |
getJebVersionInt()
Retrieve the version-integer of the JEB build that originally created the JDB2 database.
| ||||||||||
InputStream |
getRecord(int type)
Retrieve a record.
| ||||||||||
InputStream |
getRecord(JDB2Reader.RecordDescription r)
Retrieve a record.@return
| ||||||||||
JDB2Reader.RecordDescription | getRecordDescription(int type) | ||||||||||
List<JDB2Reader.RecordDescription> | getRecordDescriptions() | ||||||||||
boolean |
hasBackingFile()
Determine if this database is backed by a file.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.dao.IFileDatabaseReader
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
java.lang.AutoCloseable
|
IOException |
---|
IOException |
---|
Retrieve the backing file, if any.@return
Retrieve the version-integer of the JEB build that originally created the JDB2 database. On
older JDB2, this value is not set and will be 0. If a non-zero value is returned, it can be
converted to a partial version object using fromInt(int)
.
Retrieve a record.
type | record type |
---|
IOException |
---|
Retrieve a record.@return
IOException |
---|
Determine if this database is backed by a file.