public abstract class LineEntityParser extends java.lang.Object implements Function<java.lang.String,Entity>
Interface for parsers that parse an entity from a line of text. A fresh line parser must be created for each pass through a file, as it may be stateful (e.g. tracking line numbers).
Constructor and Description |
---|
LineEntityParser() |
Modifier and Type | Method and Description |
---|---|
Entity |
apply(java.lang.String input) |
abstract Entity |
parse(java.lang.String line)
Parse an entity from a line of text.
|
public abstract Entity parse(java.lang.String line)
Parse an entity from a line of text.
line
- The entity to parse.