Package org.biojava.bio.program.tagvalue
Class Parser
java.lang.Object
org.biojava.bio.program.tagvalue.Parser
Encapsulate the parsing of lines from a buffered reader into tag-value events.
Scripts will usually construct a parser object, a BufferedReader, a TagValueParser and TagValueListener, and then set up a loop that processes each record in the reader by calling Parser.read() until it returns false.
- Since:
- 1.2
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
read
(BufferedReader reader, TagValueParser parser, TagValueListener listener)
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
read
public boolean read(BufferedReader reader, TagValueParser parser, TagValueListener listener) throws IOException, ParserException - Throws:
IOException
ParserException
-