Java Utililty Methods String Explode

List of utility methods to do String Explode

Description

The list of methods to do String Explode are organized into topic(s).

Method

String[]explode(String split, String input)
explode
return input.split(split);
String[]explode(String src, String sep)
explode
if (src == null) {
    return null;
ArrayList<String> outputTmp = new ArrayList<String>();
char[] buffer = src.toCharArray();
char[] delimiter = sep.toCharArray();
boolean separate = false;
int start = 0;
...
Listexplode(String string, String separators)
explode
return explode(string, separators, '\\');
String[]explode(String tokenizer, String text)
explode
String[] split = text.split(tokenizer);
split = text.split(tokenizer);
return split;
Stringexplode(String[] elements, String separator)
explode
StringBuffer result = new StringBuffer();
for (int i = 0; i < elements.length; i++) {
    result.append(elements[i]);
    if (i + 1 < elements.length) {
        result.append(separator);
return result.toString();
...
StringexplodeCamelCase(String str, boolean excludeGetOrSet)
explode Camel Case
if (str == null) {
    return "";
StringBuilder sb = new StringBuilder(str.trim());
if (sb.length() > 1) {
    if (excludeGetOrSet) {
        if (str.startsWith("get") || str.startsWith("set")) {
            sb.delete(0, 3);
...
String[]explodeDomains(final String fqdn)
explode Domains
final String[] explodedFqdn = fqdn.split("\\.");
if (explodedFqdn.length == 1) {
    return explodedFqdn;
final ArrayList<String> fqdns = new ArrayList<>();
String subFqdn = explodedFqdn[explodedFqdn.length - 2] + "." + explodedFqdn[explodedFqdn.length - 1];
fqdns.add(subFqdn);
for (int i = explodedFqdn.length - 3; i >= 0; i--) {
...
ListexplodeLongs(String line, String sep)
explode Longs
List<Long> res = new ArrayList<Long>();
StringTokenizer t = new StringTokenizer(line, sep);
while (t.hasMoreElements()) {
    res.add(Long.parseLong(t.nextToken()));
return res;
String[]explodeQuoted(String arg)
Split a string up by whitespace, taking into account quoted subcomponents.
return splitCommandLine(arg, true);