public class DbfOutputStream
extends java.lang.Object
Constructor and Description |
---|
DbfOutputStream(java.io.OutputStream os)
Creates a DbfOutputStream
|
Modifier and Type | Method and Description |
---|---|
short |
calcHeaderLength(DbfTableModel model)
Calculates the length of the header in terms of bytes
|
short |
calcRecordLength(DbfTableModel model)
Calculates the length of the record by aggregating the length of each
field
|
void |
close() |
void |
writeModel(DbfTableModel model)
Writes the model out on the stream.
|
void |
writeRecords(DbfTableModel model) |
public DbfOutputStream(java.io.OutputStream os)
public void writeModel(DbfTableModel model) throws java.io.IOException
model
- the tablemodel to writejava.io.IOException
public short calcRecordLength(DbfTableModel model)
model
- The DbfTableModel for which to calculate the record lengthpublic short calcHeaderLength(DbfTableModel model)
model
- The DbfTableModel for which to calculate header lengthpublic void writeRecords(DbfTableModel model) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details