public class

JDB2Reader

extends Object
implements IFileDatabaseReader
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.dao.impl.JDB2Reader

Class Overview

JDB2 (JEB saved project database) record reader.

Summary

Nested Classes
class JDB2Reader.RecordDescription  
Public Constructors
JDB2Reader(File f)
Public Methods
void close()
Close the reader.
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

Public Constructors

public JDB2Reader (File f)

Throws
IOException

Public Methods

public void close ()

Close the reader.

Throws
IOException

public File getBackingFile ()

Retrieve the backing file, if any.@return

public int getJebVersionInt ()

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).

public InputStream getRecord (int type)

Retrieve a record.

Parameters
type record type
Returns
  • record data stream
Throws
IOException

public InputStream getRecord (JDB2Reader.RecordDescription r)

Retrieve a record.@return

Throws
IOException

public JDB2Reader.RecordDescription getRecordDescription (int type)

public List<JDB2Reader.RecordDescription> getRecordDescriptions ()

public boolean hasBackingFile ()

Determine if this database is backed by a file.