Revision 44276 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/DataServerExplorer.java

View differences:

DataServerExplorer.java
23 23
 */
24 24
package org.gvsig.fmap.dal;
25 25

  
26
import java.io.Closeable;
27 26
import java.io.File;
28
import java.io.IOException;
29
import java.io.InputStream;
30
import java.io.OutputStream;
31
import java.net.URL;
32 27
import java.util.List;
33 28

  
34 29
import org.gvsig.fmap.dal.exception.DataException;
35
import static org.gvsig.tools.dataTypes.DataTypes.URL;
36 30
import org.gvsig.tools.dispose.Disposable;
37 31
import org.gvsig.tools.util.ResourcesStorage.Resource;
38 32

  
......
45 39
 */
46 40
public interface DataServerExplorer extends Disposable, DataFactoryUnit {
47 41

  
48
    public interface DataResource extends Resource {
49
        @Override
50
        public URL getURL();
51
        
52
        @Override
53
        public boolean exists();
54
        
55
        @Override
56
        public InputStream asInputStream() throws IOException;
57
        
58
        @Override
59
        public OutputStream asOutputStream() throws IOException;
60
        
61
        @Override
62
        public void close();
63
    }
64
    
42
//    public interface DataResource extends Resource {
43
//        @Override
44
//        public URL getURL();
45
//        
46
//        @Override
47
//        public boolean exists();
48
//        
49
//        @Override
50
//        public InputStream asInputStream() throws IOException;
51
//        
52
//        @Override
53
//        public OutputStream asOutputStream() throws IOException;
54
//        
55
//        @Override
56
//        public void close();
57
//    }
58
//    
65 59
    /**
66 60
     * Returns the DataServerExplorer's name
67 61
     *
......
197 191
     * @return the DataResource or null
198 192
     * @throws DataException
199 193
     */
200
    public DataResource getResource(DataStore dataStore, String resourceName) throws DataException;
194
    public Resource getResource(DataStore dataStore, String resourceName) throws DataException;
195

  
196
    public List<Resource> getResources(DataStore dataStore, String resourceName) throws DataException;
201 197
}

Also available in: Unified diff