Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Commons Lang

Wiki Markup\[http://jakarta.apache.org/commons/lang Lang\] aims to provide:

  • Comprehensive String handling utilities
  • Enumerated types (pre JDK 1.5)
  • Nested exceptions (pre JDK 1.4)
  • Builders to create hashCode, equals, toString and compareTo methods
  • Utilities for Object, Date and Numbers

...


The Javadoc of the latest version is \[http://jakarta.apache.org/commons/lang/api/index.html available\](2.1) is available.

The Javadoc of the CVS version (development) is available.

Development plan for 2.

...

2

  1. Bug fixes
  2. StrTokenizer
  3. StrBuilder
  4. VariableFormatter/interpolator - 18962

Other ideas

  1. Wiki Markup

...

  1. [21663|http://issues.apache.org/bugzilla/show_bug.cgi?id=

...

New

  1. Wiki Markup
    29673 	\[lang\] [ExceptionUtils]: new getCause() methodname (for tomcat-exception) - *Confusing*
  2. Wiki Markup
    29692 	\[lang\] String indentation feature request - *Needs design as a non-simple problem*
  3. 29794 Add convenience format(long) methods to FastDateFormat - Needs improvement

Pushed back

  1. Wiki Markup21663

    21663] 	\[lang\] Add support in [ToStringStyle] for [DateFormat]. - *Grows quickly into commons-convert*

  2. Wiki Markup
    [27643|http://issues.apache.org/bugzilla/show_bug.cgi?id=27643] 	\[lang\]\[patch\] [ClassUtils].newInstance method - *Seems unnecessary*

  3. Wiki Markup
    [29149|http://issues.apache.org/bugzilla/show_bug.cgi?id=29149] 	\[lang\] [StringEscapeUtils].unescapeHtml() doesn't handle an empty entity - *Empty entity is in fact illegal HTML, so need to decide if we should ignore. Current behaviour seems acceptable as we're not in the work with bad HTML market.*

    StringBuffer replacement - Probably 2.2/3.0. A lot of work in this I'd imagine.

  4. Wiki Markup
    [26659|http://issues.apache.org/bugzilla/show_bug.cgi?id=26659] 	\[lang\] add method to [DateUtils] to get the distance between 2 dates - *Mainly replicated by [DurationFormatUtils], or non-obvious*

    \\

...

  1. Wiki Markup

    27592

    [29692|http://issues.apache.org/bugzilla/show_bug.cgi?id=29692] 	\[lang\] 

    [WordUtils] capitalize improvement

    String indentation feature request - *

    DONE*
  2. 23557 WordUtils.capitalizeFully(String str) should take a delimiter - DONE
  3. Wiki Markup
    27778 	\[lang\] add remove methods to [ArrayUtils] - *DONE*
  4. StringTokenizer replacement: (DONE - Tokenizer)
  5. Needs design as a non-simple problem*

  6. Wiki Markup

    25227

    [22172|http://issues.apache.org/bugzilla/show_bug.cgi?id=22172] 	\[lang\] [

    StringEscapeUtils

    DateUtils].

    unescapeHtml() doesn't handle hex entities

    parseCVS behavior parsing "h:mm z" - *

    DONE* Wiki Markup27640 \[lang\]\[patch\] [ClassUtils].primitivesToWrappers method - *DONE

    Moved to sandbox*

  7. Wiki Markup

    22717 	\[lang\] [MutableNumbers] - *see lang.mutable.*
    Wiki Markup23749

    [26297|http://issues.apache.org/bugzilla/show_bug.cgi?id=26297] 	\[lang\] 

    \

    [

    PATCH\

    BitSetUtils] 

    [NumberRange] - adds inclusive and exclusive end points - *WONTFIX*

    class, toIndexArray and fromIndexArray

  8. 21333 Add TimeoutController - Class in HttpClient. Leaving til 3.0 as not much movement on it
  9. Wiki Markup

    27876 	\[lang\] [ReflectionToStringBuilder].toString(null) throws exception by design - *DONE*
  10. Wiki Markup
    27877 	\[lang\]\[patch\] Make [ClassUtils] methods null-safe and not throw an IAE. - *DONE*
  11. Wiki Markup
    26056 	\[lang\] Add methods to [ArrayUtils]: add at end and insert-like ops - *DONE*
  12. StringUtils.ordinalIndexOf()
  13. [30674|http://issues.apache.org/bugzilla/show_bug.cgi?id=30674]     Support [HttpClient]'s [DateParser] class - *This is basically a Date parseDate(String dateValue, String\[\] dateFormats) method.*

  14. LocaleUtils - including toLocale(String,String)
  15. CloneUtils - multiple ways to clone an object

Articles

This article http://www.devx.com/Java/Article/29392/0/page/6 discusses some of the interesting classes in Commons Lang with real world examples.