KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > resource > ResourceManager


1 package net.suberic.pooka.resource;
2
3 import net.suberic.util.*;
4 import net.suberic.pooka.ssl.*;
5 import net.suberic.pooka.*;
6 import javax.activation.*;
7
8 /**
9  * 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(String JavaDoc fileName, VariableBundle defaults);
17
18   /**
19    * Creates a MailcapCommandMap to be used.
20    */

21   public abstract MailcapCommandMap createMailcap(String JavaDoc fileName) throws java.io.IOException JavaDoc;
22
23   /**
24    * Creates a PookaTrustManager.
25    */

26   public abstract PookaTrustManager createPookaTrustManager(javax.net.ssl.TrustManager[] pTrustManagers, String JavaDoc fileName);
27
28   /**
29    * Gets a resource for reading. pFileName could be a URL or a file name
30    * or some similar identifier that the ResourceManager can use.
31    */

32   public abstract java.io.InputStream JavaDoc getInputStream(String JavaDoc pFileName)
33     throws java.io.IOException JavaDoc;
34
35   /**
36    * Gets a resource for writing. pFileName could be a URL or a file name
37    * or some similar identifier that the ResourceManager can use.
38    */

39   public abstract java.io.OutputStream JavaDoc getOutputStream(String JavaDoc pFileName)
40     throws java.io.IOException JavaDoc;
41
42   /**
43    * Creates an appropriate FolderInfo for the given StoreInfo.
44    */

45   public abstract FolderInfo createFolderInfo(StoreInfo pStore, String JavaDoc pName);
46
47
48 }
49
Popular Tags