public class ThingsLineParser<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ThingsLineParser.ThingParser |
| Constructor and Description |
|---|
ThingsLineParser(ThingsLineParser.ThingParser thingParser,
String commentPrefix) |
| Modifier and Type | Method and Description |
|---|---|
(package private) T |
parseThing(BufferedReader in,
boolean multiLines) |
Map<String,T> |
readNamedThings(Reader reader) |
Map<String,T> |
readNamedThings(String urlOrFilename,
String charSetName) |
List<T> |
readThings(Reader reader,
boolean multiLines) |
List<T> |
readThings(String urlOrFilename,
String charSetName,
boolean multiLines)
Reads Ts from the file/url in the first argument.
|
public ThingsLineParser(ThingsLineParser.ThingParser thingParser, String commentPrefix)
public List<T> readThings(String urlOrFilename, String charSetName, boolean multiLines) throws IOException
urlOrFilename - charSetName - name of character set.multiLines - if true, successive lines are considered to belong to the same object, unless separated by empty lines.IOExceptionpublic Map<String,T> readNamedThings(String urlOrFilename, String charSetName) throws IOException
IOExceptionpublic List<T> readThings(Reader reader, boolean multiLines) throws IOException
IOExceptionpublic Map<String,T> readNamedThings(Reader reader) throws IOException
IOExceptionT parseThing(BufferedReader in, boolean multiLines) throws IOException, InvalidArgumentException
IOExceptionInvalidArgumentExceptionCopyright © 2019. All rights reserved.