21 package org.matsim.core.utils.io.tabularFileParser;
23 import java.io.BufferedReader;
24 import java.io.IOException;
42 return line.matches(regex);
45 private boolean isEnd(String line) {
49 return line.matches(regex);
56 return line.matches(regex);
59 private String[]
split(String line) {
62 return new String[] { line };
63 return line.split(regex);
88 throw new NullPointerException(
89 "TabularFileParser requires a non-null configuration.");
91 throw new NullPointerException(
92 "TabularFileParser requires a non-null handler.");
97 boolean ended =
false;
101 while ((line = reader.readLine()) != null && !ended) {
111 }
catch (IOException e) {
TabularFileParserConfig config
void parse(TabularFileParserConfig config, TabularFileHandler handler)
static BufferedReader getBufferedReader(URL url, Charset charset)
String getDelimiterRegex()
boolean isComment(String line)
boolean isStart(String line)
static URL resolveFileOrResource(String filename)
String [] split(String line)
boolean isEnd(String line)
void startRow(String[] row)