StringUtils

to use
org.apache.commons.lang.StringUtils
set
commons-lang-2.0.jar
in lib-folder

* IsEmpty/IsBlank - checks if a String contains text
* Trim/Strip - removes leading and trailing whitespace
* Equals - compares two strings null-safe
* IndexOf/LastIndexOf/Contains - null-safe index-of checks
* IndexOfAny/LastIndexOfAny/IndexOfAnyBut/LastIndexOfAnyBut - index-of any of a set of Strings
* ContainsOnly/ContainsNone - does String contains only/none of these characters
* Substring/Left/Right/Mid - null-safe substring extractions
* SubstringBefore/SubstringAfter/SubstringBetween - substring extraction relative to other strings
* Split/Join - splits a String into an array of substrings and vice versa
* Replace/Delete/Overlay - Searches a String and replaces one String with another
* Chomp/Chop - removes the last part of a String
* LeftPad/RightPad/Center/Repeat - pads a String
* UpperCase/LowerCase/SwapCase/Capitalize/Uncapitalize - changes the case of a String
* CountMatches - counts the number of occurrances of one String in another
* IsAlpha/IsNumeric/IsWhitespace - checks the characters in a String
* DefaultString - protects against a null input String
* Reverse/ReverseDelimited - reverses a String
* Abbreviate - abbreviates a string using ellipsis
* Difference - compares two Strings and reports on their differences
* LevensteinDistance - the number of changes needed to change one String into another

cf:
org.springframework.util.StringUtils

ref:
org.apache.commons.lang.StringUtils
http://www.jajakarta.org/commons/lang-2.0/ja/withPrimary/org/apache/commons/lang/StringUtils.html

tag : StringUtils

2007-07-25 00:46 : __lang__java : コメント : 0 : トラックバック : 0 :
コメントの投稿
非公開コメント

« next  ホーム  prev »

search

ad



counter


tag cloud

category cloud