00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 package org.knopflerfish.framework;
00036
00037 import java.io.InputStream;
00038 import java.io.IOException;
00039 import java.util.Hashtable;
00040 import java.util.Enumeration;
00041 import java.util.Vector;
00042 import java.util.List;
00043
00051 public interface BundleArchive {
00052
00061 String getAttribute(String key);
00062
00063
00071 Hashtable getLocalizationEntries(String localeFile);
00072
00076 HeaderDictionary getUnlocalizedAttributes();
00077
00083 long getBundleId();
00084
00090 String getBundleLocation();
00091
00095 int getStartLevel();
00096
00100 void setStartLevel(int level) throws IOException;
00101
00102 void setPersistent(boolean b) throws IOException;
00103
00104 boolean isPersistent();
00105
00106 long getLastModified();
00107
00108 void setLastModified(long timemillisecs)throws IOException;
00109
00119 byte[] getClassBytes(Integer sub, String component) throws IOException;
00120
00121
00130 Vector componentExists(String component, boolean onlyFirst);
00131
00132
00142 InputStream getInputStream(String component, int ix);
00143
00144
00151 String getNativeLibrary(String libName);
00152
00153
00159 boolean getStartOnLaunchFlag();
00160
00161
00167 void setStartOnLaunchFlag(boolean value) throws IOException;
00168
00169
00173 void purge();
00174
00175
00179 void close();
00180
00181
00187 List getFailedClassPathEntries();
00188
00189
00197 Enumeration findResourcesPath(String path);
00198
00199
00203 String getJarLocation();
00204
00205 }