edu.mit.jwi.data.parse
Interface ILineParser<T>
- Type Parameters:
T - the type of the object into which this parser transforms lines
- All Known Implementing Classes:
- DataLineParser, ExceptionLineParser, IndexLineParser, SenseKeyParser, SenseLineParser
public interface ILineParser<T>
A parser that transforms lines of data from a data source into data objects.
- Since:
- JWI 1.0
- Version:
- 2.4.0
- Author:
- Mark A. Finlayson
|
Method Summary |
T |
parseLine(java.lang.String line)
Given the line of data, this method produces an object of class
T. |
parseLine
T parseLine(java.lang.String line)
- Given the line of data, this method produces an object of class
T.
- Parameters:
line - the line to be parsed
- Returns:
- the object resulting from the parse
- Throws:
java.lang.NullPointerException - if the specified line is null
ILineParser.MisformattedLineException - if the line is malformed in some way- Since:
- JWI 1.0
Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.