|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.shapefile.IlvDBFWriter
public class IlvDBFWriter
This class writes the attributes files in .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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.
IOException
public 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.
IOException| Method Detail |
|---|
public 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||