Revision 44276 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DALFile.java
DALFile.java | ||
---|---|---|
7 | 7 |
import java.util.List; |
8 | 8 |
import org.apache.commons.collections4.CollectionUtils; |
9 | 9 |
import org.apache.commons.lang3.StringUtils; |
10 |
import org.gvsig.fmap.dal.DataServerExplorer.DataResource; |
|
11 | 10 |
import org.gvsig.fmap.dal.exception.DataException; |
12 | 11 |
import org.gvsig.fmap.dal.feature.FeatureType; |
13 | 12 |
import org.gvsig.tools.ToolsLocator; |
... | ... | |
32 | 31 |
return f; |
33 | 32 |
} |
34 | 33 |
|
35 |
public static DALFile getDALFile(DataResource resource) {
|
|
34 |
public static DALFile getDALFile(org.gvsig.tools.util.ResourcesStorage.Resource resource) {
|
|
36 | 35 |
DALFile df = new DALFile(); |
37 | 36 |
df.read(resource); |
38 | 37 |
return df; |
... | ... | |
70 | 69 |
return false; |
71 | 70 |
} |
72 | 71 |
|
73 |
public void write(DataResource resource) {
|
|
72 |
public void write(org.gvsig.tools.util.ResourcesStorage.Resource resource) {
|
|
74 | 73 |
try { |
75 | 74 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
76 | 75 |
PersistentState state = manager.getState(this); |
... | ... | |
81 | 80 |
} |
82 | 81 |
} |
83 | 82 |
|
84 |
public void read(DataResource resource) {
|
|
83 |
public void read(org.gvsig.tools.util.ResourcesStorage.Resource resource) {
|
|
85 | 84 |
try { |
86 | 85 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
87 | 86 |
InputStream in = resource.asInputStream(); |
Also available in: Unified diff