public interface

IFileDatabaseReader

com.pnfsoftware.jeb.core.dao.IFileDatabaseReader
Known Indirect Subclasses

Class Overview

A database record reader.

See Also

Summary

Public Methods
abstract void close()
Close the reader.
abstract File getBackingFile()
Retrieve the backing file, if any.@return
abstract InputStream getRecord(int type)
Retrieve a record.
abstract InputStream getRecord(JDB2Reader.RecordDescription r)
Retrieve a record.@return
abstract JDB2Reader.RecordDescription getRecordDescription(int type)
abstract List<JDB2Reader.RecordDescription> getRecordDescriptions()
abstract boolean hasBackingFile()
Determine if this database is backed by a file.

Public Methods

public abstract void close ()

Close the reader.

Throws
IOException

public abstract File getBackingFile ()

Retrieve the backing file, if any.@return

Throws
NoSuchFileException

public abstract InputStream getRecord (int type)

Retrieve a record.

Parameters
type record type
Returns
  • record data stream
Throws
IOException

public abstract InputStream getRecord (JDB2Reader.RecordDescription r)

Retrieve a record.@return

Throws
IOException

public abstract JDB2Reader.RecordDescription getRecordDescription (int type)

Parameters
type record type

public abstract List<JDB2Reader.RecordDescription> getRecordDescriptions ()

public abstract boolean hasBackingFile ()

Determine if this database is backed by a file.