# Interface: com.pnfsoftware.jeb.core.dao.IFileDatabaseWriter

A database record writer.

## Method: beginRecord
- parameter: `type`, type: `int`
- parameter: `flags`, type: `int`
- return type: `java.io.OutputStream`

Description: Initialize a new record.
parameter: 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
parameter: flags: record flags, should be in \[0, 0xFF\], see `JDB2Manager.FLAG_xxx` for a            list of accepted flags
return: the output stream for the newly\-created record
throws: if the record could not be initialized

## Method: endRecord
- parameter: `out`, type: `java.io.OutputStream`

Description: Close an opened record.
parameter: out: the record output stream returned by [#beginRecord(int, int)](#beginRecord(int, int))
throws: if the record could not be finalized

## Method: getBackingFile
- return type: `java.io.File`

Description: Retrieve the backing file, if any.
return: the backing file
throws: if no backing file exists

## Method: hasBackingFile
- return type: `boolean`

Description: Determine if this database is backed by a file.
return: `true` if a backing file is available

## Method: verify

Description: Verify that all opened records were closed. To be called before [#close()](#close()) if no I/O error happened.
throws: on error

