01: package net.suberic.pooka.resource;
02:
03: import net.suberic.util.*;
04: import net.suberic.pooka.ssl.*;
05: import net.suberic.pooka.*;
06: import javax.activation.*;
07:
08: /**
09: * This interface defines a ResourceManager.
10: */
11: public abstract class ResourceManager {
12:
13: /**
14: * Creates a VariableBundle to be used.
15: */
16: public abstract VariableBundle createVariableBundle(
17: String fileName, VariableBundle defaults);
18:
19: /**
20: * Creates a MailcapCommandMap to be used.
21: */
22: public abstract MailcapCommandMap createMailcap(String fileName)
23: throws java.io.IOException;
24:
25: /**
26: * Creates a PookaTrustManager.
27: */
28: public abstract PookaTrustManager createPookaTrustManager(
29: javax.net.ssl.TrustManager[] pTrustManagers, String fileName);
30:
31: /**
32: * Gets a resource for reading. pFileName could be a URL or a file name
33: * or some similar identifier that the ResourceManager can use.
34: */
35: public abstract java.io.InputStream getInputStream(String pFileName)
36: throws java.io.IOException;
37:
38: /**
39: * Gets a resource for writing. pFileName could be a URL or a file name
40: * or some similar identifier that the ResourceManager can use.
41: */
42: public abstract java.io.OutputStream getOutputStream(
43: String pFileName) throws java.io.IOException;
44:
45: }
|