public interface FileArchive
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkNativeLibrary(java.lang.String path)
Check for native library in archive.
|
boolean |
exists(java.lang.String path,
boolean dirs)
Check if a file exists (or dir, if dirs is true).
|
java.util.Enumeration<java.lang.String> |
findResourcesPath(java.lang.String path)
Returns an Enumeration of all the paths (
String objects) to
entries within the bundle whose longest sub-path matches the supplied path
argument. |
BundleGeneration |
getBundleGeneration()
Get BundleGeneration object for this archive.
|
BundleResourceStream |
getBundleResourceStream(java.lang.String component)
Get a BundleResourceStream to named entry inside a bundle.
|
byte[] |
getClassBytes(java.lang.String component)
Get a byte array containg the contents of named file from a bundle archive.
|
java.lang.String |
getNativeLibrary(java.lang.String libNameKey)
Get native code library filename.
|
int |
getSubId()
Get sub-archive id for this archive.
|
java.util.Set<java.lang.String> |
listDir(java.lang.String path)
List all entries for named directory.
|
byte[] getClassBytes(java.lang.String component) throws java.io.IOException
component
- File to get.java.io.IOException
- if failed to read jar entry.BundleResourceStream getBundleResourceStream(java.lang.String component)
component
- Entry to get reference to.ix
- index of sub archives. A postive number is the classpath entry
index. 0 means look in the main bundle.java.util.Enumeration<java.lang.String> findResourcesPath(java.lang.String path)
String
objects) to
entries within the bundle whose longest sub-path matches the supplied path
argument.name
- java.lang.String checkNativeLibrary(java.lang.String path)
path
- Name of native code file to get.java.lang.String getNativeLibrary(java.lang.String libNameKey)
libNameKey
- Key for native lib to get.BundleGeneration getBundleGeneration()
int getSubId()
boolean exists(java.lang.String path, boolean dirs)
path
- dirs
- java.util.Set<java.lang.String> listDir(java.lang.String path)
path
-