|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.classloader.XClassLoaderUtil
public final class XClassLoaderUtil
Utility classes for the XClassLoader package.
| Method Summary | |
|---|---|
static void |
addResourceEntryForClass(XClassLoader cl,
java.lang.String resourceName,
ResourceEntry entry)
Adds the given resource entry as class mapping of the entry specifies a class file. |
static byte[] |
readFileContent(java.io.File file)
Reads the resource from the repository. |
static void |
scanJarStream(XClassLoader cl,
java.io.InputStream in,
java.net.URL jarFileUrl)
Reads the zip file from the given input stream, adding all of its contents that are java class files to the entry table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] readFileContent(java.io.File file)
throws java.lang.Exception
file - File to read
java.lang.Exception - On any error that occurs while scanning the repositories specified in the class loader configuration
public static void scanJarStream(XClassLoader cl,
java.io.InputStream in,
java.net.URL jarFileUrl)
throws java.lang.Exception
cl - The class loaderin - Input stream to the jar filejarFileUrl - URL of the Jar file
java.lang.Exception - On any error that occurs while scanning the repositories specified in the class loader configuration
public static void addResourceEntryForClass(XClassLoader cl,
java.lang.String resourceName,
ResourceEntry entry)
cl - The class loaderresourceName - Resource name (relative path name or zip entry name)entry - Entry to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||