| java.lang.Object org.geotools.data.shapefile.dbf.DbaseFileWriter
DbaseFileWriter | public class DbaseFileWriter (Code) | | A DbaseFileReader is used to read 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 |
Inner Class :public static class FieldFormatter | |
Method Summary | |
public void | close() Release resources associated with this writer. | public void | write(Object[] record) Write a single dbase record. |
DbaseFileWriter | public DbaseFileWriter(DbaseFileHeader header, WritableByteChannel out) throws IOException(Code) | | Create a DbaseFileWriter using the specified header and writing to the given
channel.
Parameters: header - The DbaseFileHeader to write. Parameters: out - The Channel to write to. throws: IOException - If errors occur while initializing. |
close | public void close() throws IOException(Code) | | Release resources associated with this writer.
Highly recommended
throws: IOException - If errors occur. |
|
|