Revision 1993 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/resourcesstorage/EmptyResourcesStorage.java

View differences:

EmptyResourcesStorage.java
1 1
package org.gvsig.tools.resourcesstorage;
2 2

  
3
import java.io.IOException;
4
import java.io.InputStream;
5
import java.io.OutputStream;
6
import java.net.URL;
3 7
import java.util.List;
4 8

  
5 9
/**
......
8 12
 */
9 13
public class EmptyResourcesStorage implements ResourcesStorage {
10 14

  
15
    public static class EmptyResource implements ResourcesStorage.Resource {
16

  
17
        @Override
18
        public boolean isReadOnly() {
19
            return true;
20
        }
21

  
22
        @Override
23
        public URL getURL() {
24
            return null;
25
        }
26

  
27
        @Override
28
        public boolean exists() {
29
            return false;
30
        }
31

  
32
        @Override
33
        public InputStream asInputStream() throws IOException {
34
            return null;
35
        }
36

  
37
        @Override
38
        public OutputStream asOutputStream() throws IOException {
39
            return null;
40
        }
41

  
42
        @Override
43
        public void close() {
44
        }
45
        
46
    }
47
    
11 48
    @Override
12 49
    public Resource getResource(String name) {
13 50
        return null;

Also available in: Unified diff