ru.smartflex.tools.dbf
Class DbfAppender

java.lang.Object
  extended by ru.smartflex.tools.dbf.DbfAppender

public class DbfAppender
extends java.lang.Object

Constructs dbf header from set of columns and gives DbfStatement object for record writing.

Since:
1.00
Author:
galisha

Constructor Summary
protected DbfAppender(java.io.File dbfFile, DbfCodePages dbfCodePage)
           
protected DbfAppender(java.io.OutputStream dbfStream, DbfCodePages dbfCodePage)
           
 
Method Summary
 void defineColumns(DbfColumn... dbfColumns)
          Defines columns for dbf file.
 DbfStatement getStatement()
          Returns DbfStatement object for adding records.
protected  void registerNewRecord()
           
 void writeDbfAndClose()
          Writes records into dbf file and then closes it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbfAppender

protected DbfAppender(java.io.File dbfFile,
                      DbfCodePages dbfCodePage)

DbfAppender

protected DbfAppender(java.io.OutputStream dbfStream,
                      DbfCodePages dbfCodePage)
Method Detail

defineColumns

public void defineColumns(DbfColumn... dbfColumns)
Defines columns for dbf file.

Parameters:
dbfColumns -
Since:
1.00

writeDbfAndClose

public void writeDbfAndClose()
Writes records into dbf file and then closes it.

Since:
1.00

registerNewRecord

protected void registerNewRecord()

getStatement

public DbfStatement getStatement()
Returns DbfStatement object for adding records.

Returns:
statement object
Since:
1.00