Here you can find the source of splitLogLine(final String logLine)
public static ArrayList<String> splitLogLine(final String logLine)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; public class Main { public static final String LOG_LINE_SEPARATOR = " "; public static final String EMTPY_STRING = ""; public static ArrayList<String> splitLogLine(final String logLine) { String[] splitString = logLine.split(LOG_LINE_SEPARATOR); ArrayList<String> result = new ArrayList<>(); for (String split : splitString) { if (!LOG_LINE_SEPARATOR.equals(split) && !EMTPY_STRING.equals(split)) { result.add(split);/*from www . j a v a 2 s . co m*/ } } return result; } }