public class IlvDBFWriter extends Object
.dbf format.
The .dbf files contain the attributes of the map objects
contained in a .shp file. The output format is dBASE III+ table
file.
The basic usage of this writer is to create it, then call the
writeAttribute method for all the attributes. Once all the attributes
are written, the close method must be called in order to
flush the data and write the file header.
IlvDBFAttributeInfo,
IlvSHPWriter| Constructor and Description |
|---|
IlvDBFWriter(IlvDBFAttributeInfo info,
String filename)
Constructs a new
.dbf Writer to write the attributes whose
descriptor is specified. |
IlvDBFWriter(IlvDBFAttributeInfo info,
String filename,
String encoding)
Constructs a new
.dbf Writer to write the attributes whose
descriptor is specified, using the specified string encoding. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this writer, flushing all data and writing the header.
|
void |
writeAttributes(IlvFeatureAttributeProperty attributes)
Writes the specified attributes as a new record in the file.
|
public IlvDBFWriter(IlvDBFAttributeInfo info, String filename) throws IOException
.dbf Writer to write the attributes whose
descriptor is specified.info - The attribute descriptor.filename - The filename.IOExceptionpublic IlvDBFWriter(IlvDBFAttributeInfo info, String filename, String encoding) throws IOException
.dbf Writer to write the attributes whose
descriptor is specified, using the specified string encoding.info - The attribute descriptor.filename - The filename.encoding - The string encoding.IOExceptionpublic void close()
throws IOException
This method must be called once all the attributes are written, so that the header is updated.
IOException - If an exception occurs.public void writeAttributes(IlvFeatureAttributeProperty attributes) throws IOException
attributes - The attribute to be written.IOException - If an error occurs.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.