@Test public void testSplit() { final String line = "\"a23483f6589a37b76dfa1eff56cc3482\",\"2017-12-12 07:59:11 GMT\",\"1956年开的，的确有历史了，符合 \"\"当地隐藏的好地方\"\"\n" + "http: String[] columns = CsvUtil.split(line); assertEquals(15, columns.length); }
public static String[] split(final String line) { checkArgument(!isNullOrEmpty(line), "Source line needs to be specified"); return line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); }
CsvUtil { public static String[] split(final String line) { checkArgument(!isNullOrEmpty(line), "Source line needs to be specified"); return line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); } }
CsvUtil { public static String[] split(final String line) { checkArgument(!isNullOrEmpty(line), "Source line needs to be specified"); return line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); }  }
CsvUtil { public static String[] split(final String line) { checkArgument(!isNullOrEmpty(line), "Source line needs to be specified"); return line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); }  static String[] split(final String line); static String escapeQuote(final String original); }
CsvUtil { public static String[] split(final String line) { checkArgument(!isNullOrEmpty(line), "Source line needs to be specified"); return line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); }  static String[] split(final String line); static String escapeQuote(final String original);  }