public static String toCSVString ( Object [ ] pStringArray , String pDelimiterString ) { if ( pStringArray == null ) { return "" ; } if ( pDelimiterString == null ) { throw new IllegalArgumentException ( "delimiter == null" ) ; } StringBuilder buffer = new StringBuilder ( ) ; for ( int i = 0 ; i < pStringArray . length ; i ++ ) { if ( i > 0 ) { buffer . append ( pDelimiterString ) ; } buffer . append ( pStringArray [ i ] ) ; } return buffer . toString ( ) ; }
Converts a string array to a string separated by the given delimiter .