org.decisiondeck.utils
Class StringUtils

java.lang.Object
  extended by org.decisiondeck.utils.StringUtils

public class StringUtils
extends Object


Constructor Summary
StringUtils()
           
 
Method Summary
static String getAsUTF8(InputStream input)
           
static String getWithFirstCap(String string)
          Retrieves a string that is the given string with a first upper case letter and the rest in lower case.
static boolean isInt(String string)
           
static ByteArraysSupplier newByteArraysSupplier()
           
static String toString(Collection<?> collection, int maxLen)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

toString

public static String toString(Collection<?> collection,
                              int maxLen)

isInt

public static boolean isInt(String string)

getAsUTF8

public static String getAsUTF8(InputStream input)
                        throws IOException,
                               UnsupportedEncodingException
Throws:
IOException
UnsupportedEncodingException

getWithFirstCap

public static String getWithFirstCap(String string)
Retrieves a string that is the given string with a first upper case letter and the rest in lower case. The ENGLISH locale is used.

Parameters:
string - not null.
Returns:
not null.

newByteArraysSupplier

public static ByteArraysSupplier newByteArraysSupplier()


Copyright © 2011. All Rights Reserved.