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

Nested Class Summary
static class ILineParser.MisformattedLineException
          Thrown when a line from a data resource does not match expected formatting conventions.
 
Method Summary
 T parseLine(java.lang.String line)
          Given the line of data, this method produces an object of class T.
 

Method Detail

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.