TwelBox 1.05
current:2025-12-09stablestart:A long, long time ago in a galaxy far, far awaytype:library
TwelBox is a set of helpfull classes and library like classes which provide functions I basically need in most projects
It provides Functions for some basic String, Date and Locale manipulation to a standard for dealing with arguments passing to an application to a very small and configurable Logger. Also some small implementation changes to the default Collections provide by Java because they are handy. The jar file should never grow beyond 32Kb, while it should never be considered a barrier for including it in an application.
language
java jdk 8+
features
- Logger (configurable logger to log messages on different levels)
- SortedMap (A sortable Map implementation)
- MapEntry (An implementation of the Map.Entry interface)
- Main and ArgumentMap (A standardized implementation to deal with arguments)
- DateHelper (Making a date from a String in a somewhat more flexibel)
- HexHelper (encode/decode bytes to and from hexidecimal String)
- JavaHelper (Make object, variable and membernames from a given String)
- LocaleHelper (Parse iso like String to Locale, check if country or language is valid)
- StringHelper (Some String manipulation functions that where default available in other languages)
dependencies
- None
files
| Name | Version | Date | binary | tar | source |
|---|---|---|---|---|---|
| TwelBox | 1.05 | Dec 9, 2025 | TwelBox-1.05.zip | TwelBox-1.05.tar.gz | TwelBox-src-1.05.zip |
| TwelBox | 1.04 | Sep 21, 2007 | TwelBox-1.04.zip | TwelBox-1.04.tar.gz | TwelBox-src-1.04.zip |
| TwelBox | 1.04.1 | Dec 28, 2009 | TwelBox-1.04.1.zip | TwelBox-1.04.1.tar.gz | TwelBox-src-1.04.1.zip |
changelog
1.05
- Moved to JDK 8 as default build target as junit versions for older jdks become to cumbersome to maintain
- Add function to trim a specific character from right
- Fix having multiple parameters without settings switches
- Allow argument to contain spaces
- Implemented getPattern()
- Dutch dates changed again in 21
- Support Java 21 and 23
- Support for reverse Support JDK 17 and 19
- Added test for leftPad with length 0
- Do not use Timezone offset in making date
- Fix for milliseconds which were only expressed in 1 digit
- Support newer Java versions
- Fix for date mask containing period as separator
- Fix for short months in Dutch since Java 9
- Implemented StringHelper.join for 1.7
1.04.2
- Moved to JDK 1.6 as default
- Fixed problems with DateHelper and ThreadLocal
- TaskEvent also implements ActiveEvent enabling TaskEvent being added to Swings EventQueue
- added JavaHelper.getReverseCamel to revert camelcase names to possible column names
- Allow for compressed forms of arguments to be passed to Console application, -xfs is now equivalent to -x -f -s
1.04.1
- Make sure Logger always flushes
- allow for Log to be correctly streamed to standard output
- Log objects directly
- Make use of DateHelper Thread safe
- DynamicClassLoader moved here from Squeler and Graffle
1.04
- Logger should use java.util.Logger
- Use ISO-date in DateHelper
- Re-implemented SortedMap to implement Map not AbstractMap for performance
- Added missing test classes
0.33
- Added HexHelper
- Created JavaHelper for some methods not belonging to StringHelper
- Optimized code
0.32.1
- Added method DateHelper.fromDate()
0.32
- Moved org.brains2b.task package from Default Framework to this project
0.31
- Renamed ListEntry to EntryImpl
- Sped up the get method for SortedMap
- Implemented DEBUG_VERBOSE in Logger for long or slow debug information
- Minor changes to the javadoc
- Removed offending Unit test
0.30a
- Adapted Logger so It can write stack traces based on the level.
- Added the javadoc and the project file for this version