Documentation of 'com.ziclix.python.sql.pipe.csv.CSVString' Java class
CSVString
com.ziclix.python.sql.pipe.csv

Class CSVString



  • public class CSVString
    extends java.lang.Object
    A utility class to aide in quoting CSV strings.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String DELIMITER
      The default delimiter.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String replace(java.lang.String original, java.lang.String search, java.lang.String replace)
      Returns a new string resulting from replacing all occurrences, of search string in this string with replace string.
      static java.lang.String replace(java.lang.String original, java.lang.String search, java.lang.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.
      static java.lang.String replaceEndWith(java.lang.String original, java.lang.String oldSuffix, java.lang.String newSuffix)
      Returns a new string resulting from replacing the end of this String from oldSuffix to newSuffix.
      static java.lang.String toCSV(java.lang.String string)
      Escape the string as needed using the default delimiter.
      static java.lang.String toCSV(java.lang.String string, java.lang.String delimiter)
      Escape the string as needed using the given delimiter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DELIMITER

        public static final java.lang.String DELIMITER
        The default delimiter.
        See Also:
        Constant Field Values
    • Method Detail

      • toCSV

        public static java.lang.String toCSV(java.lang.String string)
        Escape the string as needed using the default delimiter.
      • toCSV

        public static java.lang.String toCSV(java.lang.String string,
                                             java.lang.String delimiter)
        Escape the string as needed using the given delimiter.
      • replace

        public static java.lang.String replace(java.lang.String original,
                                               java.lang.String search,
                                               java.lang.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. 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
        replace - the new string
        all - if true all occurrences of the search string are replaced; if false only the first occurrence
        Returns:
        a string derived from this string by replacing the first occurrence, or every occurrence, of search with replace.
      • replace

        public static java.lang.String replace(java.lang.String original,
                                               java.lang.String search,
                                               java.lang.String replace)
        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
        replace - the new string
        Returns:
        a string derived from this string by replacing every occurrence of search with replace.
      • replaceEndWith

        public static java.lang.String replaceEndWith(java.lang.String original,
                                                      java.lang.String oldSuffix,
                                                      java.lang.String newSuffix)
        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
        newSuffix - the new suffix
        Returns:
        a string derived from this string by replacing the end oldSuffix by newSuffix

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.