Revision 47436 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.dbf/src/main/java/org/gvsig/fmap/dal/store/dbf/DBFFeatureWriter.java
DBFFeatureWriter.java | ||
---|---|---|
29 | 29 |
import java.io.RandomAccessFile; |
30 | 30 |
import java.nio.channels.FileChannel; |
31 | 31 |
import java.nio.channels.WritableByteChannel; |
32 |
import java.util.Objects; |
|
32 | 33 |
|
33 | 34 |
import org.gvsig.fmap.dal.exception.DataException; |
34 | 35 |
import org.gvsig.fmap.dal.exception.InitializeException; |
... | ... | |
99 | 100 |
} |
100 | 101 |
|
101 | 102 |
public void append(Feature feature) throws DataException { |
102 |
// TODO use FeatureProvider |
|
103 |
dbfWriter.append(feature); |
|
103 |
if(feature.isBroken()){ |
|
104 |
throw new IllegalStateException("The feature '"+Objects.toString(feature.getReference())+"' is broken."); |
|
105 |
} |
|
106 |
// TODO use FeatureProvider |
|
107 |
dbfWriter.append(feature); |
|
104 | 108 |
} |
105 | 109 |
|
106 | 110 |
public void end() throws DataException { |
Also available in: Unified diff