gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / util / ResourcesStorage.java @ 1888
History | View | Annotate | Download (738 Bytes)
1 |
package org.gvsig.tools.util; |
---|---|
2 |
|
3 |
import java.io.Closeable; |
4 |
import java.io.IOException; |
5 |
import java.io.InputStream; |
6 |
import java.io.OutputStream; |
7 |
import java.net.URL; |
8 |
import java.util.List; |
9 |
|
10 |
/**
|
11 |
*
|
12 |
* @author jjdelcerro
|
13 |
*/
|
14 |
public interface ResourcesStorage { |
15 |
|
16 |
public interface Resource extends Closeable { |
17 |
public URL getURL(); |
18 |
|
19 |
public boolean exists(); |
20 |
|
21 |
public InputStream asInputStream() throws IOException; |
22 |
|
23 |
public OutputStream asOutputStream() throws IOException; |
24 |
|
25 |
@Override
|
26 |
public void close(); |
27 |
} |
28 |
|
29 |
public Resource getResource(String name); |
30 |
|
31 |
public List<Resource> getResources(String name); |
32 |
|
33 |
public boolean exists(String name); |
34 |
} |