Package org.harctoolbox.ircore
Class ThingsLineParser<T>
java.lang.Object
org.harctoolbox.ircore.ThingsLineParser<T>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionThingsLineParser
(ThingsLineParser.ThingParser thingParser, String commentPrefix) -
Method Summary
Modifier and TypeMethodDescriptionreadNamedThings
(Reader reader) readNamedThings
(String urlOrFilename, String charSetName) readNamedThings
(String namedInput, String xslt, String encoding) readThings
(Reader reader, boolean multiLines) readThings
(String urlOrFilename, String charSetName, boolean multiLines) Reads Ts from the file/url in the first argument.readThings
(String input, String xslt, String encoding, boolean multiLines)
-
Constructor Details
-
ThingsLineParser
-
-
Method Details
-
readThings
public List<T> readThings(String urlOrFilename, String charSetName, boolean multiLines) throws IOException Reads Ts from the file/url in the first argument.- Parameters:
urlOrFilename
-charSetName
- name of character set.multiLines
- if true, successive lines are considered to belong to the same object, unless separated by empty lines.- Returns:
- List of Ts read from the first argument.
- Throws:
IOException
-
readThings
public List<T> readThings(String input, String xslt, String encoding, boolean multiLines) throws SAXException, IOException, UnsupportedEncodingException, TransformerException -
readThings
- Throws:
IOException
-
readNamedThings
- Throws:
IOException
-
readNamedThings
public Map<String,T> readNamedThings(String namedInput, String xslt, String encoding) throws SAXException, IOException, TransformerException -
readNamedThings
- Throws:
IOException
-