Last update: 2011-06-23

org.proteios.util
Class FlatFileParser.Line

java.lang.Object
  extended by org.proteios.util.FlatFileParser.Line
Enclosing class:
FlatFileParser

public static class FlatFileParser.Line
extends Object

This class holds data about a line parsed by the FlatFileParser.parseHeaders() method.

Version:
2.0
Author:
Nicklas
See Also:
FlatFileParser.getLine(int)

Method Summary
 String line()
          The entire line as it was read from the input stream.
 String name()
          The name of the header if the line is a header line.
 FlatFileParser.LineType type()
          The type of the line as determined by the FlatFileParser.parseHeaders() method.
 String value()
          The value of the header if the line is a header line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

line

public String line()
The entire line as it was read from the input stream.

Returns:
A string

type

public FlatFileParser.LineType type()
The type of the line as determined by the FlatFileParser.parseHeaders() method. The value is one of the values in the FlatFileParser.LineType enumeration.

Returns:
A code indicating the type of the line

name

public String name()
The name of the header if the line is a header line.

Returns:
The name of the header, or null if it isn't a header line

value

public String value()
The value of the header if the line is a header line.

Returns:
The value of the header, or null if it isn't a header line

Last update: 2011-06-23