DbaseFileWriter class

A DbaseFileWriter is used to write a dbase III format file. The general use of this class is:

DbaseFileHeader header = ...
WritableFileChannel out = new FileOutputStream("thefile.dbf").getChannel();
DbaseFileWriter w = new DbaseFileWriter(header,out);
while ( moreRecords ) {
w.write( getMyRecord() );
}
w.close();
You must supply the moreRecords and getMyRecord() logic...

@author Ian Schneider

Constructors

DbaseFileWriter(DbaseFileHeader header, FileWriter channel, [Charset? charset, TimeZones? timeZone])
Create a DbaseFileWriter using the specified header and writing to the given channel.

Properties

channel ↔ FileWriter
getter/setter pair
charset ↔ Charset?
getter/setter pair
formatter FieldFormatter
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
nullValues List<List<int>>
The null values to use for each column. This will be accessed only when null values are actually encountered, but it is allocated in the ctor to save time and memory.
getter/setter pair
reportFieldSizeErrors bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeZone TimeZones?
getter/setter pair

Methods

close() → void
Release resources associated with this writer. Highly recommended
fieldBytes(Object obj, int col) Future<List<int>>
Called to convert the given object to bytes.
getHeader() DbaseFileHeader
getReportFieldSizeErrors() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
setReportFieldSizeErrors(bool reportFieldSizeErrors) → void
toString() String
A string representation of this object.
inherited
write(List<int> buffer) Future<void>
writeRecord(List record) Future<void>
Write a single dbase record.

Operators

operator ==(Object other) bool
The equality operator.
inherited