Example usage for org.apache.commons.text StrTokenizer StrTokenizer

List of usage examples for org.apache.commons.text StrTokenizer StrTokenizer

Introduction

In this page you can find the example usage for org.apache.commons.text StrTokenizer StrTokenizer.

Prototype

public StrTokenizer(final char[] input, final StrMatcher delim, final StrMatcher quote) 

Source Link

Document

Constructs a tokenizer splitting using the specified delimiter matcher and handling quotes using the specified quote matcher.

Usage

From source file:com.twosigma.beakerx.kernel.magic.command.functionality.MagicCommandUtils.java

public static String[] splitPath(String command) {
    StrTokenizer tokenizer = new StrTokenizer(command, StrMatcher.spaceMatcher(), StrMatcher.quoteMatcher());
    return tokenizer.getTokenArray();
}