Example usage for org.apache.hadoop.util StringUtils getStringCollection

List of usage examples for org.apache.hadoop.util StringUtils getStringCollection

Introduction

In this page you can find the example usage for org.apache.hadoop.util StringUtils getStringCollection.

Prototype

public static Collection<String> getStringCollection(String str, String delim) 

Source Link

Document

Returns a collection of strings.

Usage

From source file:org.apache.slider.core.launch.ClasspathConstructor.java

License:Apache License

/**
 * Split a classpath. This uses the local path separator so MUST NOT
 * be used to work with remote classpaths
 * @param localpath local path//from   w  w w .j  av a 2s  .  c  o m
 * @return a splite
 */
public Collection<String> splitClasspath(String localpath) {
    String separator = System.getProperty("path.separator");
    return StringUtils.getStringCollection(localpath, separator);
}