Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / resourcesstorage / EmptyResourcesStorage.java @ 2142

History | View | Annotate | Download (1.82 KB)

1
package org.gvsig.tools.resourcesstorage;
2

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

    
10
/**
11
 *
12
 * @author jjdelcerro
13
 */
14
public class EmptyResourcesStorage implements ResourcesStorage {
15

    
16
    public static class EmptyResource implements ResourcesStorage.Resource {
17

    
18
        @Override
19
        public String getName() {
20
          return null;
21
        }
22

    
23
        @Override
24
        public boolean isReadOnly() {
25
            return true;
26
        }
27

    
28
        @Override
29
        public URL getURL() {
30
            return null;
31
        }
32

    
33
        @Override
34
        public boolean exists() {
35
            return false;
36
        }
37

    
38
        @Override
39
        public InputStream asInputStream() throws IOException {
40
            return null;
41
        }
42

    
43
        @Override
44
        public OutputStream asOutputStream() throws IOException {
45
            return null;
46
        }
47

    
48
        @Override
49
        public void close() {
50
        }
51
        
52
    }
53
    
54
    @Override
55
    public Resource getResource(String name) {
56
        return null;
57
    }
58

    
59
    @Override
60
    public boolean isReadOnly() {
61
        return true;
62
    }
63

    
64
    @Override
65
    public String getSeparator() {
66
        return ".";
67
    }
68

    
69
    @Override
70
    public List<Resource> getResources(String name) {
71
        return null;
72
    }
73

    
74
    @Override
75
    public boolean isEmpty() {
76
        return true;
77
    }
78

    
79
    @Override
80
    public boolean exists(String name) {
81
        return false;
82
    }
83

    
84
    @Override
85
    public Resource getLocalizedResource(String resourceName) {
86
        return null;
87
    }
88

    
89
    @Override
90
    public List<Resource> getLocalizedResources(String resourceName) {
91
        return null;
92
    }
93

    
94
    @Override
95
    public List<String> getResourceNames() {
96
      return Collections.EMPTY_LIST;
97
    }
98

    
99
}