java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.dao.impl.JDB2Writer |
JDB2 (JEB saved project database) record writer.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JDB2Writer(File f) | |||||||||||
JDB2Writer(File f, boolean appendIfExists) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OutputStream |
beginRecord(int type, int flags)
Initialize a new record.
| ||||||||||
void | close() | ||||||||||
void |
endRecord(OutputStream out)
Close an opened record.
| ||||||||||
File |
getBackingFile()
Retrieve the backing file, if any.@return
| ||||||||||
boolean |
hasBackingFile()
Determine if this database is backed by a file.
| ||||||||||
void |
verify()
Verify that all opened records were closed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.dao.IFileDatabaseWriter
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
java.lang.AutoCloseable
|
IOException |
---|
IOException |
---|
Initialize a new record.
type | the record type, should be in [0, 0xFFFFFF], refer to
JDB2Manager.TYPE_xxx for a list of well-known types; custom types are
allowed and must start be in the 0x99xxxx range |
---|---|
flags | record flags, should be in [0, 0xFF], see JDB2Manager.FLAG_xxx for a
list of accepted flags |
IOException |
---|
IOException |
---|
Close an opened record.
IOException |
---|
Retrieve the backing file, if any.@return
Determine if this database is backed by a file.
Verify that all opened records were closed. To be called before close()
if no I/O
error happened.