@Component public class Parser extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LINES |
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComment(String line)
Determines if a line is a comment line.
|
LineType |
transformLine(String line,
int numLines,
int numValidLines,
LineSink outputSink,
LineSink errorSink)
Transforms a single line.
|
Variant |
tryParseVariant(String line)
Parses a line into a
Variant. |
com.google.common.collect.Multiset<LineType> |
tryTransform(File inputFile,
File output,
File error)
Transforms gavin input file.
|
public static final int MAX_LINES
public com.google.common.collect.Multiset<LineType> tryTransform(File inputFile, File output, File error) throws IOException
inputFile - the file to transformoutput - the file to output parsed variants toerror - the file to output error lines toLineTypes of the input file's linesIOException - if the file interaction failspublic LineType transformLine(String line, int numLines, int numValidLines, LineSink outputSink, LineSink errorSink)
public boolean isComment(String line)
line - the line that may be a comment lineCopyright © 2017. All Rights Reserved.