public class

JDB2Writer

extends Object
implements IFileDatabaseWriter
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.dao.impl.JDB2Writer

Class Overview

JDB2 (JEB saved project database) record writer.

Summary

Public Constructors
JDB2Writer(File f)
Public Methods
OutputStream beginRecord(int type, int flags)
Initialize a new record.
void close()
Close the writer.
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

Public Constructors

public JDB2Writer (File f)

Throws
IOException

Public Methods

public OutputStream beginRecord (int type, int flags)

Initialize a new record.

Parameters
type the record type, should be in [0, 0xFFFFFF]
flags record flags, should be in [0, 0xFF]
Returns
  • the output stream for the newly-created record
Throws
IOException

public void close ()

Close the writer.

Throws
IOException

public void endRecord (OutputStream out)

Close an opened record.

Throws
IOException

public File getBackingFile ()

Retrieve the backing file, if any.@return

public boolean hasBackingFile ()

Determine if this database is backed by a file.

public void verify ()

Verify that all opened records were closed. To be called before close() if no I/O error happened.