public interface FileArchive
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
findResourcesPath(java.lang.String path) |
java.lang.String |
getAttribute(java.lang.String key)
Get an attribute from the manifest of the archive.
|
byte[] |
getClassBytes(java.lang.String classFile)
Get a byte array containg the contents of named file from
the archive.
|
java.io.InputStream |
getInputStream(java.lang.String component)
Get an InputStream to named entry inside an Archive.
|
java.util.jar.Manifest |
getManifest()
Get manifest for this archive.
|
FileArchive |
getSubArchive(java.lang.String path)
Get an Archive handle to a named Jar file within this archive.
|
java.lang.String getAttribute(java.lang.String key)
key
- Name of attribute to get.byte[] getClassBytes(java.lang.String classFile) throws java.io.IOException
component
- File to get.java.io.IOException
- if failed to read jar entry.java.io.InputStream getInputStream(java.lang.String component)
component
- Entry to get reference to.java.util.Enumeration findResourcesPath(java.lang.String path)
FileArchive getSubArchive(java.lang.String path) throws java.io.IOException
path
- Name of Jar file to get.java.io.FileNotFoundException
- if no such Jar file in archive.java.io.IOException
- if failed to read Jar file.java.util.jar.Manifest getManifest()