Revision 19603 trunk/libraries/libDataSourceBaseDrivers/src/org/gvsig/data/datastores/vectorial/driver/dbf/DBFFeaturesWriter.java
DBFFeaturesWriter.java | ||
---|---|---|
3 | 3 |
import java.io.File; |
4 | 4 |
import java.io.IOException; |
5 | 5 |
import java.io.RandomAccessFile; |
6 |
import java.io.UnsupportedEncodingException; |
|
7 | 6 |
import java.nio.channels.FileChannel; |
8 | 7 |
import java.nio.channels.WritableByteChannel; |
9 | 8 |
|
... | ... | |
11 | 10 |
import org.gvsig.data.datastores.vectorial.driver.IFeaturesWriter; |
12 | 11 |
import org.gvsig.data.datastores.vectorial.driver.dbf.filedbf.DbaseFileHeader; |
13 | 12 |
import org.gvsig.data.datastores.vectorial.driver.dbf.filedbf.DbaseFileWriter; |
14 |
import org.gvsig.data.datastores.vectorial.driver.exception.BadFieldDriverException; |
|
15 | 13 |
import org.gvsig.data.datastores.vectorial.driver.exception.UnsupportedEncodingDriverException; |
16 | 14 |
import org.gvsig.data.exception.InitializeWriterException; |
17 | 15 |
import org.gvsig.data.exception.OpenException; |
18 |
import org.gvsig.data.exception.ReadException; |
|
19 | 16 |
import org.gvsig.data.exception.WriteException; |
20 | 17 |
import org.gvsig.data.vectorial.IFeature; |
21 |
import org.gvsig.data.vectorial.IFeatureAttributeDescriptor; |
|
22 | 18 |
import org.gvsig.data.vectorial.IFeatureType; |
23 | 19 |
|
24 | 20 |
public class DBFFeaturesWriter implements IFeaturesWriter { |
... | ... | |
56 | 52 |
} |
57 | 53 |
} |
58 | 54 |
|
59 |
public void deleteFeature(IFeature feature) { |
|
60 |
// TODO Apéndice de método generado automáticamente |
|
61 |
|
|
62 |
} |
|
63 |
|
|
64 |
public void updateFeature(IFeature oldFeature,IFeature feature) throws WriteException, UnsupportedEncodingDriverException { |
|
65 |
// TODO Auto-generated method stub |
|
66 |
|
|
67 |
} |
|
68 | 55 |
public void insertFeature(IFeature feature) throws WriteException, UnsupportedEncodingDriverException { |
69 | 56 |
dbfWrite.write(feature); |
70 | 57 |
numRows++; |
... | ... | |
74 | 61 |
this.featureType=featureType; |
75 | 62 |
} |
76 | 63 |
|
77 |
public boolean isWriteAll() { |
|
78 |
return true; |
|
79 |
} |
|
80 |
|
|
81 | 64 |
protected WritableByteChannel getWriteChannel(String path) throws IOException { |
82 | 65 |
WritableByteChannel channel; |
83 | 66 |
|
Also available in: Unified diff