public class SenseLineParser extends Object implements ILineParser<ISenseEntry>
index.sense or
sense.index). It produces an ISenseEntry object.
This class follows a singleton design pattern, and is not intended to be
instantiated directly; rather, call the getInstance() method to get
the singleton instance.
ILineParser.MisformattedLineException| Modifier and Type | Field and Description |
|---|---|
protected ILineParser<ISenseKey> |
keyParser |
| Modifier | Constructor and Description |
|---|---|
protected |
SenseLineParser()
This constructor is marked protected so that the class may be
sub-classed, but not directly instantiated.
|
protected |
SenseLineParser(ILineParser<ISenseKey> keyParser)
This constructor is marked protected so that the class may be
sub-classed, but not directly instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
static SenseLineParser |
getInstance()
Returns the singleton instance of this class, instantiating it if
necessary.
|
ISenseEntry |
parseLine(String line)
Given the line of data, this method produces an object of class
T. |
protected final ILineParser<ISenseKey> keyParser
protected SenseLineParser()
getInstance() method.protected SenseLineParser(ILineParser<ISenseKey> keyParser)
getInstance() method.keyParser - the sense key parser this sense line parser should useNullPointerException - if the specified key parser is nullpublic static SenseLineParser getInstance()
null.null singleton instance of this class,
instantiating it if necessary.public ISenseEntry parseLine(String line)
ILineParserT.parseLine in interface ILineParser<ISenseEntry>line - the line to be parsedCopyright © 2018. All rights reserved.