|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileArchive
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |