public class StringSplitter extends Object
| Constructor and Description |
|---|
StringSplitter() |
| Modifier and Type | Method and Description |
|---|---|
static StringSplitter |
create() |
boolean |
isDetectQuotes() |
boolean |
isDetectSingleQuotes() |
StringSplitter |
setDetectQuotes(boolean detectQuotes) |
StringSplitter |
setDetectSingleQuotes(boolean detectSingleQuotes) |
String[] |
splitQuoted(String input,
Character split)
Split an input string at a specified split-character into several parts.
|
void |
splitQuoted(String input,
Character split,
String[] parts)
Split an input string at a specified split-character into several parts.
|
void |
splitQuoted(String input,
Character split,
de.unknownreality.dataframe.common.StringSplitter.Parts parts)
Split an input string at a specified split-character into several parts.
|
public static StringSplitter create()
public StringSplitter setDetectQuotes(boolean detectQuotes)
public StringSplitter setDetectSingleQuotes(boolean detectSingleQuotes)
public boolean isDetectQuotes()
public boolean isDetectSingleQuotes()
public String[] splitQuoted(String input, Character split)
"testA testB testB" -> [testA,testB,testC]
"'testA testB' testB" -> [testA testB,testC]
input - input stringsplit - char used to splitpublic void splitQuoted(String input, Character split, String[] parts)
"testA testB testB" -> [testA,testB,testC]
"'testA testB' testB" -> [testA testB,testC]
input - input stringsplit - char used to splitparts - string array that is filled with the resulting partspublic void splitQuoted(String input, Character split, de.unknownreality.dataframe.common.StringSplitter.Parts parts)
"testA testB testB" -> [testA,testB,testC]
"'testA testB' testB" -> [testA testB,testC]
input - input stringsplit - char used to splitparts - list filled with the resulting partsCopyright © 2020. All rights reserved.