public void setDelimiter ( final String delimiter ) { String prefix = "" ; //escape the "pipe" character used in regular expression of String.split method if ( "|" . equals ( delimiter ) ) { prefix = "\\" ; } this . delimiter = prefix + delimiter ; }
Set the delimiter to use .