List of usage examples for org.apache.commons.lang StringUtils stripAll
public static String[] stripAll(String[] strs, String stripChars)
Strips any of a set of characters from the start and end of every String in an array.
From source file:facs.utils.GenericFacsParser.java
public String[] lineToColumns(String line) { String[] info = line.split(separator); // remove delimiter in all columns if (delimiter != null && !delimiter.isEmpty()) { return StringUtils.stripAll(StringUtils.stripAll(info), delimiter); }/*from w w w . j a va 2 s .c o m*/ return info; }