org.pf.tools.cda.base.util
Class StringUtil

java.lang.Object
  extended by org.pf.text.StringUtil
      extended by org.pf.tools.cda.base.util.StringUtil

public class StringUtil
extends org.pf.text.StringUtil

Extension of the org.pf.text.StringUtil

Version:
1.0
Author:
M.Duchrow

Field Summary
 
Fields inherited from class org.pf.text.StringUtil
CH_CR, CH_NEWLINE, CH_SPACE, CH_TAB, DEFAULT_TEXT_DELIMITERS, DELIMITER_APOS, DELIMITER_QUOTE, EMPTY_STRING, EMPTY_STRING_ARRAY, STR_CR, STR_INNER_CLASS_SEPARATOR, STR_NEWLINE, STR_PACKAGE_SEPARATOR, STR_SPACE, STR_TAB
 
Method Summary
 boolean contains(char[] charArray, char ch)
           
static StringUtil instance()
          Returns the only instance this class supports (design pattern "Singleton")
 java.lang.String reduceStringLength(java.lang.String aString, int maxLen, java.lang.String separator, java.lang.String gap, boolean keepFirst)
          Reduce the given string to the specified maximum length using the gap to be shown instead of the left out substring.
 
Methods inherited from class org.pf.text.StringUtil
addAll, addAllNew, allParts, allParts, allParts, allSubstrings, append, append, appendIfNotThere, appendIfNotThere, areEqual, areEqualIgnoreCase, asConfigSettings, asConfigSettings, asConfigSettings, asConfigSettings, asInteger, asLong, asMap, asMap, asMap, asMap, asProperties, asReadOnlyNamedValues, asReadOnlyNamedValues, asSortedString, asSortedString, asSortedString, asSortedString, asString, asString, asString, asString, asString, asString, asString, asString, asStrings, asStrings, bytesToHex, bytesToHex, center, centerCh, contains, contains, contains, contains, containsIgnoreCase, copy, copy, copy, copyFrom, copyFrom, copyLowerCase, copyMapToProperties, copyUpperCase, copyWithout, copyWithout, count, current, cutHead, cutTail, getDelimitedSubstring, getDelimitedSubstring, getDelimitedSubstring, getDelimitedSubstring, getPackageName, getString, getString, getString, getUnqualifiedClassName, hexToBytes, hexToBytes, indexOf, indexOf, indexOf, indexOfIgnoreCase, indexOfString, isAnyNullOrBlank, isFalse, isInteger, isLong, isNoneNullOrBlank, isNullOrBlank, isNullOrEmpty, isNullOrEmpty, isPositiveInteger, isPositiveLong, isTrue, isZeroOrPositiveInteger, isZeroOrPositiveLong, leftPad, leftPad, leftPad, leftPadCh, leftPadCh, leftPadCh, leftPadCh, notNullOrBlank, notNullOrEmpty, notNullOrEmpty, parts, parts, parts, parts, prefix, remove, remove, removeNull, repeat, replaceAll, replaceEach, reverse, rightPad, rightPad, rightPad, rightPadCh, rightPadCh, rightPadCh, setFileNameExtension, split, splitNameValue, splitStringPair, stackTrace, startingFrom, substrings, suffix, toLowerCase, toMap, toMap, toMap, toProperties, toUpperCase, translate, trim, trimmedParts, trimOnce, upTo, words
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static StringUtil instance()
Returns the only instance this class supports (design pattern "Singleton")


reduceStringLength

public java.lang.String reduceStringLength(java.lang.String aString,
                                           int maxLen,
                                           java.lang.String separator,
                                           java.lang.String gap,
                                           boolean keepFirst)
Reduce the given string to the specified maximum length using the gap to be shown instead of the left out substring.


contains

public boolean contains(char[] charArray,
                        char ch)