Knopflerfish OSGi bundle util 4.1.0
A B C D E F G H I J K L O P Q R S T U V W

A

addJob(Job) - Method in class org.knopflerfish.util.workerthread.WorkerThread
Adds a job to be processed last in the job queue.
addJob(Job, long) - Method in class org.knopflerfish.util.workerthread.WorkerThread
Adds a job to be processed after given delay.
Alias - Class in org.knopflerfish.util.framework
This class contains aliases for system properties.
Alias() - Constructor for class org.knopflerfish.util.framework.Alias
 
asList(Object[]) - Static method in class org.knopflerfish.util.Lists
 

B

Base64 - Class in org.knopflerfish.util
 
Base64() - Constructor for class org.knopflerfish.util.Base64
 
baseDirName - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
bc - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
binarySearch(List<E>, Comparator<E>, E) - Static method in class org.knopflerfish.util.Text
Do binary search for a package entry in the list with the same version number add the specifies package entry.
bProcessExitMeansStopBundle - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
BUNDLE_EXTRACT_FILES - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Extract-Files") identifying a set of resources that should be copied to the OS file system before executing the start or stop executable is run.
BUNDLE_START_EXECUTABLE - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Start-Executable") identifying a number of hardware environments and the native language code executables that the bundle is carrying for each of these environments.
BUNDLE_START_EXECUTABLE_ARGS - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Start-Executable-Args") specifying the (space-separated) process arguments to the executable specified by ExecutableBundleActivator.BUNDLE_START_EXECUTABLE.
BUNDLE_START_EXECUTABLE_EXIT_MEANS_BUNDLESTOP - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Start-Executable-Exit-Means-Bundle-Stop"") specifying of the the process exit of the start executable should stop the bundle too.
BUNDLE_STOP_EXECUTABLE - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Stop-Executable") identifying a number of hardware environments and the native language code executables that the bundle is carrying for each of these environments.
BUNDLE_STOP_EXECUTABLE_ARGS - Static variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
Manifest header (named "Bundle-Start-Executable-Args") specifying the (space-separated) process arguments to the executable specified by ExecutableBundleActivator.BUNDLE_START_EXECUTABLE.
ByteArray - Class in org.knopflerfish.util
A converter class used to read primitive datatypes from, or write them to, a bytearray, starting at position index.
ByteArray() - Constructor for class org.knopflerfish.util.ByteArray
 

C

CachedObject<V> - Class in org.knopflerfish.util
An object with a timeout.
CachedObject() - Constructor for class org.knopflerfish.util.CachedObject
Equivalent to CachedObject(null).
CachedObject(V) - Constructor for class org.knopflerfish.util.CachedObject
Equivalent to CachedObject(object, CachedObject.DEFAULT_TIMEOUT)
CachedObject(V, long) - Constructor for class org.knopflerfish.util.CachedObject
Create a cached object from an object and a specified timeout.
CacheMap<K,V> - Class in org.knopflerfish.util
Timeout version of a HashMap.
CacheMap() - Constructor for class org.knopflerfish.util.CacheMap
Create a map with default timeout period.
CacheMap(long) - Constructor for class org.knopflerfish.util.CacheMap
Create a map with a specified timeout period.
capitalize(String) - Static method in class org.knopflerfish.util.Text
Make first (and only) character in string upper case.
CITCHAR - Static variable in class org.knopflerfish.util.Text
Default citation char for splitwords().
ClassLoaderUtil - Class in org.knopflerfish.util
Utility class for handling common class loading cases, like wrapping external libraries in the correct context class loader.
ClassLoaderUtil() - Constructor for class org.knopflerfish.util.ClassLoaderUtil
 
clear() - Method in class org.knopflerfish.util.CacheMap
 
close() - Method in class org.knopflerfish.util.Queue
Closes the queue.
close() - Method in class org.knopflerfish.util.Semaphore
 
Compare - Class in org.knopflerfish.util
 
Compare() - Constructor for class org.knopflerfish.util.Compare
 
compare(Object, Object) - Method in interface org.knopflerfish.util.sort.CompareFunc
 
compareByteArrays(byte[], byte[]) - Static method in class org.knopflerfish.util.Compare
Returns true if the two specified arrays of bytes are equal to one another.
CompareFunc - Interface in org.knopflerfish.util.sort
Like the 1.2 Comparable interface.
compareTo(VersionRange) - Method in class org.knopflerfish.util.framework.VersionRange
Compare object to another VersionRange.
containsIgnoreCase(List<String>, List<String>) - Static method in class org.knopflerfish.util.Text
Check if a string exists in a list.
containsKey(Object) - Method in class org.knopflerfish.util.CacheMap
Check if an object exists in the map.
containsValue(Object) - Method in class org.knopflerfish.util.CacheMap
 

D

debug(String) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Method used for debug logging.
debug(String, Exception) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Method used for debug logging.
decode(byte[]) - Static method in class org.knopflerfish.util.Base64
Decode a string of Base64 data.
decode(String) - Static method in class org.knopflerfish.util.Base64
 
decode(InputStream, OutputStream) - Static method in class org.knopflerfish.util.Base64
 
DEFAULT_TIMEOUT - Static variable in class org.knopflerfish.util.CachedObject
Default timeout period in milliseconds.
defaultVersionRange - Static variable in class org.knopflerfish.util.framework.VersionRange
The empty version range "[0.0.0,inf)".
Dict - Class in org.knopflerfish.util
Utility methods for dealing with dictionaries.
Dict() - Constructor for class org.knopflerfish.util.Dict
 
doContextClassLoader(ClassLoader, PrivilegedAction<Object>) - Static method in class org.knopflerfish.util.ClassLoaderUtil
Run the specified action in a specified ContextClassLoader.
doContextClassLoader(ClassLoader, PrivilegedExceptionAction<Object>) - Static method in class org.knopflerfish.util.ClassLoaderUtil
Run the specified action in a specified ContextClassLoader.

E

encode(byte[]) - Static method in class org.knopflerfish.util.Base64
Encode a raw byte array to a Base64 String.
encode(byte[], int) - Static method in class org.knopflerfish.util.Base64
Encode a raw byte array to a Base64 String.
encode(InputStream, OutputStream, int) - Static method in class org.knopflerfish.util.Base64
 
entrySet() - Method in class org.knopflerfish.util.CacheMap
 
equals(Object) - Method in class org.knopflerfish.util.framework.VersionRange
Check if object is equal to this object.
ExecutableBundleActivator - Class in org.knopflerfish.util.framework
 
ExecutableBundleActivator() - Constructor for class org.knopflerfish.util.framework.ExecutableBundleActivator
 

F

flush() - Method in class org.knopflerfish.util.CachedObject
Clear the stored object.
formatJavaType(String, String[]) - Static method in class org.knopflerfish.util.Text
Format a java type in human readable way.

G

get() - Method in class org.knopflerfish.util.CachedObject
Get the cached object.
get(Object) - Method in class org.knopflerfish.util.CacheMap
Get an object from the map.
get(long) - Method in class org.knopflerfish.util.Semaphore
Waits up to timeout milliseconds for this Semaphore to receive a value.
getBaseDir() - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Get the base directory for extract files to be executed.
getBaseDirName() - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
getByte(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Returns a byte read from the bytearray, starting at position index.
getDouble(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
 
getFloat(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Returns a float read from the bytearray, starting at the position index.
getInt(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Returns an integer read from the bytearray, starting at position index.
getLong(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Returns a long read from the bytearray, starting at position index.
getMethod(Class, String, Class[]) - Static method in class org.knopflerfish.util.Timer
Get method from class
getParam(String, String, String) - Static method in class org.knopflerfish.util.Text
Retrieves a parameter value from a parameter string.
getRepeatNo() - Method in class org.knopflerfish.util.workerthread.RepeatingJob
Returns the number of successful repeats this job has made.
getShort(byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Returns a short read from the bytearray, starting at position index.
getStringValue(Dictionary<String, ?>, String) - Static method in class org.knopflerfish.util.Dict
 
getStringValue(Dictionary<String, ?>, String, String) - Static method in class org.knopflerfish.util.Dict
 

H

hashCode() - Method in class org.knopflerfish.util.framework.VersionRange
Hash code for this package entry.

I

initFiles(String, String, String) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
initFiles2(String, String, String) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
insert(Object) - Method in class org.knopflerfish.util.Queue
Inserts an item into the queue.
insertFirst(Object) - Method in class org.knopflerfish.util.Queue
Inserts an item first into the queue.
isDebug() - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Flag which controls if logging should be done.
isEmpty() - Method in class org.knopflerfish.util.CacheMap
 
isProcessExitMeansStopBundle() - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Return true if exit of start process should stop bundle too.
isRunning() - Method in class org.knopflerfish.util.workerthread.WorkerThread
Returns true if this Workerthread is running.
isSpecified() - Method in class org.knopflerfish.util.framework.VersionRange
 

J

Job - Class in org.knopflerfish.util.workerthread
 
Job() - Constructor for class org.knopflerfish.util.workerthread.Job
 
join(Object[], String) - Static method in class org.knopflerfish.util.Text
Join an array into a single string with a given separator.

K

keySet() - Method in class org.knopflerfish.util.CacheMap
 

L

Lists - Class in org.knopflerfish.util
 
Lists() - Constructor for class org.knopflerfish.util.Lists
 

O

org.knopflerfish.util - package org.knopflerfish.util
The Knopflerfish Utility Package.
org.knopflerfish.util.framework - package org.knopflerfish.util.framework
The Knopflerfish Framework Utility Package.
org.knopflerfish.util.sort - package org.knopflerfish.util.sort
The Knopflerfish Sort Utility Package.
org.knopflerfish.util.workerthread - package org.knopflerfish.util.workerthread
The Knopflerfish Workerthread Utility Package.
osNameAliases - Static variable in class org.knopflerfish.util.framework.Alias
List of OS name aliases.

P

parseEntries(String, String, boolean, boolean, boolean) - Static method in class org.knopflerfish.util.Text
Parse strings of format: ENTRY (, ENTRY)* ENTRY = key (; key)* (; PARAM)* PARAM = attribute '=' value PARAM = directive ':=' value
parseEnumeration(String, String) - Static method in class org.knopflerfish.util.Text
Parse strings of format: ENTRY (, ENTRY)*
postMainLoopHook() - Method in class org.knopflerfish.util.workerthread.WorkerThread
Override this method in subclasses.
preMainLoopHook() - Method in class org.knopflerfish.util.workerthread.WorkerThread
Override this method in subclasses.
processorAliases - Static variable in class org.knopflerfish.util.framework.Alias
List of processor aliases.
put(K, V) - Method in class org.knopflerfish.util.CacheMap
Store an object in the map.
putAll(Map<? extends K, ? extends V>) - Method in class org.knopflerfish.util.CacheMap
 

Q

QSort - Class in org.knopflerfish.util.sort
Quicksort utility class.
QSort() - Constructor for class org.knopflerfish.util.sort.QSort
Use static methods, please
Queue - Class in org.knopflerfish.util
The Queue class represents a first-in-first-out (FIFO) queue of objects.
Queue(int) - Constructor for class org.knopflerfish.util.Queue
Constructs an Queue with the specifies maximum size.
quit() - Method in class org.knopflerfish.util.workerthread.RepeatingJob
This method can be called to stop repeating this Job.

R

remove(Object) - Method in class org.knopflerfish.util.CacheMap
 
remove() - Method in class org.knopflerfish.util.Queue
Removes and returns the first object in the queue.
removeJob(Job) - Method in class org.knopflerfish.util.workerthread.WorkerThread
Removes a job from the job queue (linear-time operation).
removeWait(float) - Method in class org.knopflerfish.util.Queue
Removes and returns the first item in the queue.
RepeatingJob - Class in org.knopflerfish.util.workerthread
 
RepeatingJob(int[], int) - Constructor for class org.knopflerfish.util.workerthread.RepeatingJob
Creates a repetetive event.
replace(String, String, String) - Static method in class org.knopflerfish.util.Text
Replace all occurances of a substring with another string.
replace(String, String, int) - Static method in class org.knopflerfish.util.Text
Utility method for replacing substrings with an integer.
replace(String, String, boolean) - Static method in class org.knopflerfish.util.Text
Utility method for replacing substrings with a boolean.
reset() - Method in class org.knopflerfish.util.Semaphore
 
run() - Method in class org.knopflerfish.util.workerthread.Job
Called by the WorkerThread when this Job is scheduled to run.
run() - Method in class org.knopflerfish.util.workerthread.WorkerThread
 
runFile(File, String, boolean, boolean) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Start a new process from a file.
runProcess - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 

S

Semaphore - Class in org.knopflerfish.util
The Semaphore class handles synchronization and waiting for values.
Semaphore() - Constructor for class org.knopflerfish.util.Semaphore
 
set(V) - Method in class org.knopflerfish.util.CachedObject
Set the cache's object and restore its creation time.
set(Object) - Method in class org.knopflerfish.util.Semaphore
Sets the value of this Semaphore.
setBaseDirName(String) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
setByte(byte, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Writes a byte into the bytearray, starting at position index.
setDouble(double, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
 
setFloat(float, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
 
setInt(int, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Writes an integer into the bytearray, starting at position index.
setLong(long, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Writes a long into the bytearray, starting at position index.
setProcessExitMeansStopBundle(boolean) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
Set if exit of start process should stop bundle too.
setShort(short, byte[], int) - Static method in class org.knopflerfish.util.ByteArray
Writes a short into the bytearray, starting at position index.
shutdown() - Method in class org.knopflerfish.util.workerthread.WorkerThread
Call this method to stop job processing and cause this Workerthread to exit its run() method.
size() - Method in class org.knopflerfish.util.CacheMap
 
sort(Vector<Object>, CompareFunc) - Static method in class org.knopflerfish.util.sort.QSort
Sort a vector with objects comparable using a comparison function.
sort(Object[], CompareFunc) - Static method in class org.knopflerfish.util.sort.QSort
Sort an array with objects comparable using a comparison function.
Sort - Class in org.knopflerfish.util.sort
 
sortFileArray(File[]) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified array of File objects into ascending order, according to the natural ordering of its elements.
sortFileArray(File[], int, int) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified range of the specified array of File objects into ascending order, according to the natural ordering of its elements.
sortFloatArray(Float[]) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified array of Float objects into ascending order, according to the natural ordering of its elements.
sortFloatArray(Float[], int, int) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified range of the specified array of Float objects into ascending order, according to the natural ordering of its elements.
sortIntegerArray(Integer[]) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified array of Integer objects into ascending order, according to the natural ordering of its elements.
sortIntegerArray(Integer[], int, int) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified range of the specified array of Integer objects into ascending order, according to the natural ordering of its elements.
sortStringArray(String[]) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified array of String objects into ascending order, according to the natural ordering of its elements.
sortStringArray(String[], int, int) - Static method in class org.knopflerfish.util.sort.Sort
Sorts the specified range of the specified array of String objects into ascending order, according to the natural ordering of its elements.
split(String, String) - Static method in class org.knopflerfish.util.Text
Splits a string into words, using the StringTokenizer class.
splitwords(String) - Static method in class org.knopflerfish.util.Text
Utility method to split a string into words separated by whitespace.
splitwords(String, String) - Static method in class org.knopflerfish.util.Text
Utility method to split a string into words separated by whitespace.
splitwords(String, String, char) - Static method in class org.knopflerfish.util.Text
Split a string into words separated by whitespace.
start(BundleContext) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
startFile - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
startName - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
status(String, Job, Exception) - Method in class org.knopflerfish.util.workerthread.WorkerThread
 
stop(BundleContext) - Method in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
stopFile - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 
stopName - Variable in class org.knopflerfish.util.framework.ExecutableBundleActivator
 

T

Text - Class in org.knopflerfish.util
Misc static text utility methods.
Text() - Constructor for class org.knopflerfish.util.Text
 
Text.AttributeTokenizer - Class in org.knopflerfish.util
Class for tokenize an attribute string.
timeMillis() - Static method in class org.knopflerfish.util.Timer
Use System.nanoTime() if available, otherwise revert to System.currentTimeMillis().
timeout - Variable in class org.knopflerfish.util.CacheMap
 
Timer - Class in org.knopflerfish.util
Misc static timer utility methods.
Timer() - Constructor for class org.knopflerfish.util.Timer
 
toArray(Vector<Object>) - Static method in class org.knopflerfish.util.Text
 
toHtmlString() - Method in class org.knopflerfish.util.framework.VersionRange
HTML-formated range that allays has both a lower and an upper limit.
toString() - Method in class org.knopflerfish.util.CachedObject
Print the cached object as "<object's string value>:<remaining time in milliseconds>"
toString() - Method in class org.knopflerfish.util.framework.VersionRange
String with version number.

U

unifyOsName(String) - Static method in class org.knopflerfish.util.framework.Alias
Unify OS names.
unifyProcessor(String) - Static method in class org.knopflerfish.util.framework.Alias
Unify processor names.
untabify(String, int) - Static method in class org.knopflerfish.util.Text
Expand all tabs in a string.
update() - Method in class org.knopflerfish.util.CacheMap
Force timeout check on all items in map and remove all expired keys and objects.

V

values() - Method in class org.knopflerfish.util.CacheMap
 
VersionRange - Class in org.knopflerfish.util.framework
Class representing OSGi version ranges.
VersionRange(String) - Constructor for class org.knopflerfish.util.framework.VersionRange
Construct a VersionRange object.
VersionRange() - Constructor for class org.knopflerfish.util.framework.VersionRange
Construct the default VersionRange object.
VersionRange(String, String, boolean) - Constructor for class org.knopflerfish.util.framework.VersionRange
Extract a version range from an OSGi LDAP filter.

W

WHITESPACE - Static variable in class org.knopflerfish.util.Text
Default whitespace string for splitwords().
withinRange(Version) - Method in class org.knopflerfish.util.framework.VersionRange
Check if specified version is within our range.
withinRange(VersionRange) - Method in class org.knopflerfish.util.framework.VersionRange
Check if objects range is within another VersionRange.
WorkerThread - Class in org.knopflerfish.util.workerthread
 
WorkerThread() - Constructor for class org.knopflerfish.util.workerthread.WorkerThread
Creates a Workerthread.
WorkerThread(String) - Constructor for class org.knopflerfish.util.workerthread.WorkerThread
Creates a named Workerthread.
WorkerThread(ThreadGroup, String) - Constructor for class org.knopflerfish.util.workerthread.WorkerThread
Creates a named Workerthread belonging toi the specified ThreadGroup.

A B C D E F G H I J K L O P Q R S T U V W
Knopflerfish OSGi ${version}