com.agimatec.commons.util
Class StringUtils

java.lang.Object
  extended by com.agimatec.commons.util.StringUtils

public class StringUtils
extends Object

This class contains static methods that operate on Strings or return Strings. Methods for conversion and formatting can be found here.


Constructor Summary
StringUtils()
           
 
Method Summary
static void appendSQLLiteral(String string, StringBuilder buf)
          double ' for usage as SQL literal.
static String toSQLLiteral(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

toSQLLiteral

public static String toSQLLiteral(String string)

appendSQLLiteral

public static void appendSQLLiteral(String string,
                                    StringBuilder buf)
double ' for usage as SQL literal. replace \r and \n by chr(13) and chr(10) append the given string as an SQL literal (embedded with ') or null if the given string is null



Copyright © 2008-2011. All Rights Reserved.