Example usage for org.apache.commons.lang StringUtils stripAll

List of usage examples for org.apache.commons.lang StringUtils stripAll

Introduction

In this page you can find the example usage for org.apache.commons.lang StringUtils stripAll.

Prototype

public static String[] stripAll(String[] strs, String stripChars) 

Source Link

Document

Strips any of a set of characters from the start and end of every String in an array.

Usage

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;
}