|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.fileinstall.internal.Util
public class Util
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static int |
getGlobalLogLevel(BundleContext context)
|
static void |
jarDir(File directory,
File zipName)
Jar up a directory |
static void |
jarDir(File directory,
OutputStream os)
|
static long |
loadChecksum(Bundle b,
BundleContext bc)
Returns the stored checksum of the bundle. |
static void |
log(BundleContext context,
int logLevel,
int msgLevel,
String message,
Throwable e)
Log a message and optional throwable. |
static void |
storeChecksum(Bundle b,
long checksum,
BundleContext bc)
Stores the checksum into a bundle data file. |
static void |
zipDir(File directory,
ZipOutputStream zos,
String path,
Set exclusions)
Zip up a directory path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static int getGlobalLogLevel(BundleContext context)
public static void log(BundleContext context, int logLevel, int msgLevel, String message, Throwable e)
message
- The message to loge
- The throwable to logpublic static void jarDir(File directory, File zipName) throws IOException
directory
- zipName
-
IOException
public static void jarDir(File directory, OutputStream os) throws IOException
IOException
public static void zipDir(File directory, ZipOutputStream zos, String path, Set exclusions) throws IOException
directory
- zos
- path
- exclusions
-
IOException
public static void storeChecksum(Bundle b, long checksum, BundleContext bc)
b
- The bundle whose checksum must be storedchecksum
- the lastModified date to be stored in bcbc
- the FileInstall's bundle context where to store the checksum.public static long loadChecksum(Bundle b, BundleContext bc)
b
- the bundle whose checksum must be returnedbc
- the FileInstall's bundle context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |