Modifier and Type | Class and Description |
---|---|
static class |
Jars.F |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,byte[]> |
buildClassNameIndex(java.io.File dir) |
static java.util.Map<java.lang.String,byte[]> |
buildClassNameIndex(java.io.File dir,
org.osgl.Osgl.Function<java.lang.String,java.lang.Boolean> ignoredClassNames) |
static java.util.Map<java.lang.String,byte[]> |
buildClassNameIndex(java.util.List<java.io.File> jars) |
static java.util.Map<java.lang.String,byte[]> |
buildClassNameIndex(java.util.List<java.io.File> jars,
org.osgl.Osgl.Func1<java.lang.String,java.lang.Boolean> ignoredClassNames) |
static byte[] |
getBytes(java.util.jar.JarFile jar,
java.util.jar.JarEntry entry) |
static java.io.File |
probeJarFile(java.lang.Class<?> clazz)
If the class is loaded from a Jar file, then return that file.
|
static java.lang.String |
readContent(java.util.jar.JarFile jar,
java.util.jar.JarEntry entry) |
static void |
scan(java.io.File file,
Jars.F.JarEntryVisitor... visitors) |
static Jars |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Jars[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Jars[] values()
for (Jars c : Jars.values()) System.out.println(c);
public static Jars valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Map<java.lang.String,byte[]> buildClassNameIndex(java.io.File dir)
public static java.util.Map<java.lang.String,byte[]> buildClassNameIndex(java.io.File dir, org.osgl.Osgl.Function<java.lang.String,java.lang.Boolean> ignoredClassNames)
public static java.util.Map<java.lang.String,byte[]> buildClassNameIndex(java.util.List<java.io.File> jars)
public static java.util.Map<java.lang.String,byte[]> buildClassNameIndex(java.util.List<java.io.File> jars, org.osgl.Osgl.Func1<java.lang.String,java.lang.Boolean> ignoredClassNames)
public static java.io.File probeJarFile(java.lang.Class<?> clazz)
If the class is loaded from a Jar file, then return that file. Otherwise return null
public static void scan(java.io.File file, Jars.F.JarEntryVisitor... visitors)
public static byte[] getBytes(java.util.jar.JarFile jar, java.util.jar.JarEntry entry)
public static java.lang.String readContent(java.util.jar.JarFile jar, java.util.jar.JarEntry entry)
Copyright © 2014–2017 ActFramework. All rights reserved.