A B C D E F G H I J K L M N O P R S T V W

A

ArgumentException - exception org.brains2b.console.ArgumentException.
Exception for handling undefined arguments in the Main console class and accompanying ArgumentMap
ArgumentException(String) - Constructor for class org.brains2b.console.ArgumentException
Constructor for ArgumentException.
ArgumentException(String, String) - Constructor for class org.brains2b.console.ArgumentException
Constructor for ArgumentException.
ArgumentMap - class org.brains2b.console.ArgumentMap.
An ArgumentMap is a 'road map' to the arguments that can be supplied to Main and the expected follow up.
ArgumentMap() - Constructor for class org.brains2b.console.ArgumentMap
Constructor for ArgumentMap.
addArgument(String, boolean) - Method in class org.brains2b.console.ArgumentMap
adds an Argument to the root of this map.
addArgument(String, String) - Method in class org.brains2b.console.ArgumentMap
adds an Argument to the root of this map.
addArgumentTo(String, String, boolean) - Method in class org.brains2b.console.ArgumentMap
Adds an argument to an option
addException(Throwable) - Method in class org.brains2b.task.DefaultTask
Adds an exception to the reporting Stack
addMessage(String) - Method in class org.brains2b.task.DefaultTask
Adds a message to the reporting Stack
addOption(String, char, boolean) - Method in class org.brains2b.console.ArgumentMap
adds an Option to the root of this map.
addOptionTo(String, String, char) - Method in class org.brains2b.console.ArgumentMap
adds an option to an argument
addTaskListener(TaskListener) - Method in class org.brains2b.task.DefaultTask
Method addTaskListener.

B

baseOnly(String) - Static method in class org.brains2b.util.StringHelper
Returns only the base capitilazid characters [A-Z][0-9] All other characters are removed from the String
betweenDate(Date, Date, int, boolean) - Static method in class org.brains2b.util.DateHelper
calculate the difference between two Dates in intervals defined by field.
betweenDate(Calendar, Calendar, int, boolean) - Static method in class org.brains2b.util.DateHelper
calculate the difference between two Calendars in intervals defined by field.
breakLine(String, int) - Static method in class org.brains2b.util.StringHelper
Breaks a String after a maximun number of characters on the first space or punctuation before that maximum.

C

clear() - Method in class org.brains2b.collection.SortedMap
 
compare(Object, Object) - Method in class org.brains2b.collection.SortedMap
compare to Objects and returns the natural order
containsKey(Object) - Method in class org.brains2b.collection.SortedMap
 
containsValue(Object) - Method in class org.brains2b.collection.SortedMap
 

D

DEBUG - Static variable in class org.brains2b.log.Logger
 
DEBUG_VERBOSE - Static variable in class org.brains2b.log.Logger
Output level for DEBUG statements which might have a notable influence on the overal performance.
DateHelper - class org.brains2b.util.DateHelper.
A function library giving some extra help dealing with dates.
DateHelper() - Constructor for class org.brains2b.util.DateHelper
 
DefaultTask - class org.brains2b.task.DefaultTask.
Implementing a Task as default Task Extra is the possibility to send an Event for use in progress bars and the like
DefaultTask() - Constructor for class org.brains2b.task.DefaultTask
Constructor for DefaultTask.
DynamicClassLoader - class org.brains2b.loader.DynamicClassLoader.
Loads classes dynamically from a directory or jar/zip file being passed in.
DynamicClassLoader() - Constructor for class org.brains2b.loader.DynamicClassLoader
 
decode(String) - Static method in class org.brains2b.util.HexHelper
decode a hexidecimal string into an array of bytes
decodeDimension(String) - Static method in class org.brains2b.util.GuiHelper
 

E

ERROR - Static variable in class org.brains2b.log.Logger
 
EntryImpl - class org.brains2b.collection.EntryImpl.
A Map.Entry written to rely on Strings instead of objects
EntryImpl() - Constructor for class org.brains2b.collection.EntryImpl
Default Constructor for EntryImpl
EntryImpl(String, String) - Constructor for class org.brains2b.collection.EntryImpl
Constructor for EntryImpl, initializes the values
encode(byte[]) - Static method in class org.brains2b.util.HexHelper
encode an array of bytes into a hexidecimal String
encodeDimension(Dimension) - Static method in class org.brains2b.util.GuiHelper
 
entrySet() - Method in class org.brains2b.collection.SortedMap
 
equals(Object) - Method in class org.brains2b.collection.EntryImpl
Compares this EntryImpl to another object to see if they are equal The following rules apply: If comparing a EntryImpl equals returns true if they have the same key If comparing a String equals returns true if the String equals the key In all other cases false is returned.
equals(Object) - Method in class org.brains2b.collection.MapEntry
Compares this EntryImpl to another object to see if they are equal The following rules apply: If comparing a EntryImpl equals returns true if they have the same key If comparing a String equals returns true if the String equals the key In all other cases false is returned.

F

FILESEP - Static variable in class org.brains2b.loader.DynamicClassLoader
 
FileHelper - class org.brains2b.util.FileHelper.
[Short description] [Long description]
findImplementation(Class, URL[]) - Static method in class org.brains2b.loader.DynamicClassLoader
find an implementation of an interface or class in the classpath supplied by the URLs
fireTaskEvent(TaskEvent) - Method in class org.brains2b.task.DefaultTask
Method fireTaskEvent.
format(LogRecord) - Method in class org.brains2b.log.Logger.ClassicFormatter
 
fromDate(Date) - Static method in class org.brains2b.util.DateHelper
gets a date formatted as String with pattern "dd-MMM-yyyy"

G

GuiHelper - class org.brains2b.util.GuiHelper.
Static help function for GUI related items
get(Object) - Method in class org.brains2b.collection.SortedMap
Overwritten the default get for performance reasons
getArgument() - Method in class org.brains2b.console.ArgumentException
Gets the Argument for which the Exception was thrown
getArgument(String) - Method in class org.brains2b.console.Main
gets the value of an argument defined by name.
getArgumentMap() - Method in class org.brains2b.console.Main
gets the ArgumentMap.
getKey() - Method in class org.brains2b.collection.EntryImpl
Returns the key.
getKey() - Method in class org.brains2b.collection.MapEntry
 
getList(String[]) - Method in class org.brains2b.console.ArgumentMap
gets the Map of all arguments supplied through String[] args mapped to their argument name.
getLocale(String) - Static method in class org.brains2b.util.LocaleHelper
gets Locale from a String representing a Locale
getLogger() - Static method in class org.brains2b.log.Logger
get the default TwelBox logger
getMax() - Method in class org.brains2b.task.DefaultTask
Gets the maximum position.
getMax() - Method in class org.brains2b.task.TaskEvent
Gets the maximum position.
getMessages() - Method in class org.brains2b.task.DefaultTask
 
getMessages() - Method in interface org.brains2b.task.Task
 
getMin() - Method in class org.brains2b.task.DefaultTask
Gets the mininum position.
getMin() - Method in class org.brains2b.task.TaskEvent
Gets the minimum position .
getNameWithoutExt(String) - Static method in class org.brains2b.util.FileHelper
 
getNonBaseCharacter(String) - Static method in class org.brains2b.util.StringHelper
 
getNonBaseCharacter(String, int) - Static method in class org.brains2b.util.StringHelper
 
getPosition() - Method in class org.brains2b.task.DefaultTask
Gets the position.
getPosition() - Method in class org.brains2b.task.TaskEvent
Gets the position.
getResult() - Method in class org.brains2b.task.DefaultTask
 
getResult() - Method in interface org.brains2b.task.Task
 
getSortOrder() - Method in class org.brains2b.collection.SortedMap
gets the sort order.
getValue() - Method in class org.brains2b.collection.EntryImpl
Returns the value.
getValue() - Method in class org.brains2b.collection.MapEntry
 
getWidth(String) - Static method in class org.brains2b.util.GuiHelper
Calculates Width in pixels on the basis of String The default font from a Swing component is used get the necessary metrics.
getWidth(String, int) - Static method in class org.brains2b.util.GuiHelper
Calculates the width in pixels of a given string and return the longer of the string length or the given width.

H

HexHelper - class org.brains2b.util.HexHelper.
HexHelper decodes and encodes to hexadecimal values.
HexHelper() - Constructor for class org.brains2b.util.HexHelper
 
handleException(ArgumentException) - Method in class org.brains2b.console.Main
Default function for handling ArgumentException(s).

I

INFO - Static variable in class org.brains2b.log.Logger
 
initCaps(String, char) - Static method in class org.brains2b.util.StringHelper
Capitalize the first Letter in a String and all letters following the char.
instance() - Static method in class org.brains2b.log.Logger
Deprecated. use getLogger() instead
isColor(String) - Static method in class org.brains2b.util.GuiHelper
check if a value supplied as a String contains the information to be used as a Color
isCountry(String) - Static method in class org.brains2b.util.LocaleHelper
Determines if a two letter combination is a valid ISO country code.
isEmpty() - Method in class org.brains2b.collection.SortedMap
 
isEmpty(String) - Static method in class org.brains2b.util.StringHelper
check if a String is empty, meaning a String of length zero or null
isFinished() - Method in class org.brains2b.task.DefaultTask
 
isFinished() - Method in interface org.brains2b.task.Task
 
isFinished() - Method in class org.brains2b.task.TaskEvent
True if Task has finished
isFont(String) - Static method in class org.brains2b.util.GuiHelper
check if a value supplied as a String contains the information to be used as a Font
isLanguage(String) - Static method in class org.brains2b.util.LocaleHelper
Determines if a two letter combination is a valid ISO language code.
isQuoteCharacter(char) - Static method in class org.brains2b.util.StringHelper
check is a character is a quote: "e; or &
isoFromDate(Date, boolean) - Static method in class org.brains2b.util.DateHelper
 
isoFromDate(Date) - Static method in class org.brains2b.util.DateHelper
 
isoToDate(String) - Static method in class org.brains2b.util.DateHelper
 

J

JavaHelper - class org.brains2b.util.JavaHelper.
[Short description] [Long description]

K

KEY - Static variable in class org.brains2b.collection.SortedMap
value to set sorting on KEY
keySet() - Method in class org.brains2b.collection.SortedMap
 

L

LocaleHelper - class org.brains2b.util.LocaleHelper.
A function library giving some extra help dealing with java.util.Locale.
LocaleHelper() - Constructor for class org.brains2b.util.LocaleHelper
 
Logger - class org.brains2b.log.Logger.
Prints log messages to selected output or if not set to default output on the basis of a defined outputlevel and Logger level Logger writes output to a defined output on the basis of the following rules All output send to println(String) is always written to System.out or if set to an defined output All output send to println(String,level) are written to the output if the Logger-level is equal or lower than the level given.
Logger(String, String) - Constructor for class org.brains2b.log.Logger
 
Logger.ClassicFormatter - class org.brains2b.log.Logger.ClassicFormatter.
Implementation of Formatter to be consistant with The old-style Logger's formatting
Logger.ClassicFormatter() - Constructor for class org.brains2b.log.Logger.ClassicFormatter
 
leftPad(String, String, int) - Static method in class org.brains2b.util.StringHelper
Pads a String to the left with th filler String until len is reached If the String is longer then the length the string will be truncated on the left to not return more then lenght characters
loadClass(String, URL[]) - Static method in class org.brains2b.loader.DynamicClassLoader
load a specific class identified by it's fully qualified name from the passed URLs
loadClasses(URL[]) - Static method in class org.brains2b.loader.DynamicClassLoader
load all the classes from the classpath supplied by the URLs

M

MISSING_ARGUMENT - Static variable in class org.brains2b.console.ArgumentException
Constant for error message A required argument is missing
Main - class org.brains2b.console.Main.
Main is a class for applications that are depending on commandline argument, like console applications.
Main() - Constructor for class org.brains2b.console.Main
Constructor for Main.
MapEntry - class org.brains2b.collection.MapEntry.
A straightforward implementation of the Map.Entry interface outside the Map class
MapEntry() - Constructor for class org.brains2b.collection.MapEntry
Default Constructor for MapEntry.
MapEntry(Object) - Constructor for class org.brains2b.collection.MapEntry
Constructor for MapEntry.
MapEntry(Object, Object) - Constructor for class org.brains2b.collection.MapEntry
Constructor for MapEntry.
makeArgumentList(String[]) - Method in class org.brains2b.console.Main
Makes the argument list on the basis of a defined ArgumentMap and the supplied array of arguments
matchBracket(char, String) - Static method in class org.brains2b.util.StringHelper
Finds the matching bracket for the first character given by left in String line.
matchBracket(int, String) - Static method in class org.brains2b.util.StringHelper
Finds the matching bracket for the bracket character at pos in line.
memberName(String) - Static method in class org.brains2b.util.JavaHelper
Makes a valid java member name by first making it into a javaName and then appending 'm_' to it.

N

NOT_RECOGNIZED - Static variable in class org.brains2b.console.ArgumentException
Constant for error message Not recognized as an argument
NO_SORT - Static variable in class org.brains2b.collection.SortedMap
value to set NO SORTING

O

objectName(String) - Static method in class org.brains2b.util.JavaHelper
Makes a valid, well formatted java Object name from a String replaces spaces and underscores with InitCapped words
org.brains2b.collection - package org.brains2b.collection
 
org.brains2b.console - package org.brains2b.console
 
org.brains2b.loader - package org.brains2b.loader
 
org.brains2b.log - package org.brains2b.log
 
org.brains2b.task - package org.brains2b.task
 
org.brains2b.util - package org.brains2b.util
 

P

PANIC - Static variable in class org.brains2b.log.Logger
 
paramString() - Method in class org.brains2b.collection.EntryImpl
Method paramString is used for testing purposes.
print(Object) - Static method in class org.brains2b.log.Logger
Prints the Object to the standard or defined output, irrespective of the level
print(Object, int) - Static method in class org.brains2b.log.Logger
Prints the Object to the standard or defined output, if the level given is smaller or equal to the Logger.level
printException(String, Exception) - Static method in class org.brains2b.log.Logger
Writes the message to the standard or defined error stream if the level of logger is greater or equal to ERROR, writes the complete stack trace underneath if the logger is set to DEBUG or DEBUG_VERBOSE.
printException(Exception) - Static method in class org.brains2b.log.Logger
Uses printException(String,Exception) to write the Exception message to the standard or defined error stream if the level of logger is greater or equal to ERROR, and writing the complete stack trace underneath if the logger is set to DEBUG or DEBUG_VERBOSE.
println(String) - Static method in class org.brains2b.log.Logger
Prints the String to the standard or defined output, irrespective of the level
println(String, int) - Static method in class org.brains2b.log.Logger
Prints the String to the standard or defined output, if the level given is smaller or equal to the Logger.level
progress() - Method in class org.brains2b.task.DefaultTask
Progresses the position by one, until the maximum given by max.
progress(int) - Method in class org.brains2b.task.DefaultTask
 
put(Object, Object) - Method in class org.brains2b.collection.SortedMap
SortedMap does not allow null for keys or values
putAll(Map) - Method in class org.brains2b.collection.SortedMap
 

R

RESULT_ERROR - Static variable in interface org.brains2b.task.Task
 
RESULT_OK - Static variable in interface org.brains2b.task.Task
 
RESULT_WARNING - Static variable in interface org.brains2b.task.Task
 
remove(Object) - Method in class org.brains2b.collection.SortedMap
 
removeTaskListener(TaskListener) - Method in class org.brains2b.task.DefaultTask
Method removeTaskListener.
rightPad(String, String, int) - Static method in class org.brains2b.util.StringHelper
Pads a String to the right with the filler String until len is reached If the String is longer then the length the string will be truncated on the right to not return more then lenght characters

S

SortedMap - class org.brains2b.collection.SortedMap.
Map implementation that can be sorted defined by a given sort order
SortedMap(int) - Constructor for class org.brains2b.collection.SortedMap
Constructor for SortedMap.
SortedMap() - Constructor for class org.brains2b.collection.SortedMap
Constructor for SortedMap.
SortedMap(Map, int) - Constructor for class org.brains2b.collection.SortedMap
Constructor for SortedMap.
SortedMap(Map) - Constructor for class org.brains2b.collection.SortedMap
Constructor for SortedMap.
SortedMap(Hashtable) - Constructor for class org.brains2b.collection.SortedMap
Constructor for SortedMap.
StringHelper - class org.brains2b.util.StringHelper.
Some static functions that help with Stringmanipulation.
StringHelper() - Constructor for class org.brains2b.util.StringHelper
Creates new StringHelper, protected as all functions are static
setArgument(String, String) - Method in class org.brains2b.console.Main
set arguments to the list of arguments.
setArgumentMap(ArgumentMap) - Method in class org.brains2b.console.Main
Sets the ArgumentMap.
setFinished(boolean) - Method in class org.brains2b.task.DefaultTask
 
setFinished(boolean) - Method in interface org.brains2b.task.Task
 
setFinished(boolean) - Method in class org.brains2b.task.TaskEvent
set to true if task has finished
setKey(String) - Method in class org.brains2b.collection.EntryImpl
sets the Key
setKey(Object) - Method in class org.brains2b.collection.MapEntry
sets the Key
setLevel(int) - Static method in class org.brains2b.log.Logger
sets the Logger level programmatically.
setMax(int) - Method in class org.brains2b.task.DefaultTask
Sets the maximum position
setMiddle(Rectangle, Rectangle) - Static method in class org.brains2b.util.GuiHelper
Calculates Middle for a target from a source
setMin(int) - Method in class org.brains2b.task.DefaultTask
Sets the minimum position
setResult(int) - Method in class org.brains2b.task.DefaultTask
 
setSortOrder(int) - Method in class org.brains2b.collection.SortedMap
sets the sort order for this SortedMap
setValue(String) - Method in class org.brains2b.collection.EntryImpl
sets the Value
setValue(Object) - Method in class org.brains2b.collection.MapEntry
 
singleName(String) - Static method in class org.brains2b.util.JavaHelper
Returns the single objectName from possible plural name use this only with English plurals!
size() - Method in class org.brains2b.collection.SortedMap
 
stripper(String, char) - Static method in class org.brains2b.util.StringHelper
Strips a character from a String.

T

TRACE - Static variable in class org.brains2b.log.Logger
 
Task - interface org.brains2b.task.Task.
Interface defining a Task Which is a runnable, threadable Object that returns a result an possible messages generated during the task
TaskEvent - class org.brains2b.task.TaskEvent.
TaskEvent is fired when a task notifies its Listeners that it has either made progress or is finished
TaskEvent(Object, int) - Constructor for class org.brains2b.task.TaskEvent
Constructor for TaskEvent.
TaskEvent(Object, int, int, int, int) - Constructor for class org.brains2b.task.TaskEvent
Constructor for TaskEvent.
TaskListener - interface org.brains2b.task.TaskListener.
The Listener interface for TaskEvents
taskProgressed(TaskEvent) - Method in interface org.brains2b.task.TaskListener
 
toDate(String) - Static method in class org.brains2b.util.DateHelper
returns a Date from a String representing a Date
toDate(String, Locale) - Static method in class org.brains2b.util.DateHelper
 
toString() - Method in class org.brains2b.collection.EntryImpl
The toString is equivalent to getValue() to make it possible to use it in a Combobox.

V

VALUE - Static variable in class org.brains2b.collection.SortedMap
value to set sorting on VALUE
values() - Method in class org.brains2b.collection.SortedMap
 
variableName(String) - Static method in class org.brains2b.util.JavaHelper
 

W

WARNING - Static variable in class org.brains2b.log.Logger
 

A B C D E F G H I J K L M N O P R S T V W