| java.lang.Object com.ziclix.python.sql.pipe.csv.CSVString
CSVString | public class CSVString (Code) | | A utility class to aide in quoting CSV strings.
author: brian zimmer version: $Revision: 2414 $ |
Method Summary | |
public static String | replace(String original, String search, String replace, boolean all) Returns a new string resulting from replacing the first occurrence, or all occurrences,
of search string in this string with replace string. | public static String | replace(String original, String search, String replace) Returns a new string resulting from replacing all occurrences,
of search string in this string with replace string. | public static String | replaceEndWith(String original, String oldSuffix, String newSuffix) Returns a new string resulting from replacing the end of this String
from oldSuffix to newSuffix. | public static String | toCSV(String string) Escape the string as needed using the default delimiter. | public static String | toCSV(String string, String delimiter) Escape the string as needed using the given delimiter. |
DELIMITER | final public static String DELIMITER(Code) | | The default delimiter.
|
replace | public static String replace(String original, String search, String replace, boolean all)(Code) | | Returns a new string resulting from replacing the first occurrence, or all occurrences,
of search string in this string with replace string.
If the string search does not occur in the character sequence represented by this object,
then this string is returned.
Parameters: search - the old string Parameters: replace - the new string all=true all occurrences of the search string are replaced all=false only the first occurrence of the search string is replaced a string derived from this string by replacing the first occurrence,or every occurrence of search with replace. |
replace | public static String replace(String original, String search, String replace)(Code) | | Returns a new string resulting from replacing all occurrences,
of search string in this string with replace string.
If the string search does not occur in the character sequence represented by this object,
then this string is returned.
Parameters: search - the old string Parameters: replace - the new string a string derived from this string by replacing every occurrence of search with replace. |
replaceEndWith | public static String replaceEndWith(String original, String oldSuffix, String newSuffix)(Code) | | Returns a new string resulting from replacing the end of this String
from oldSuffix to newSuffix.
The original string is returned if it does not end with oldSuffix.
Parameters: oldSuffix - the old suffix Parameters: newSuffix - the new suffix a string derived from this string by replacing the end oldSuffix by newSuffix |
toCSV | public static String toCSV(String string)(Code) | | Escape the string as needed using the default delimiter.
|
toCSV | public static String toCSV(String string, String delimiter)(Code) | | Escape the string as needed using the given delimiter.
|
|
|