net.sf.jsefa.common.lowlevel.filter
Class Line

java.lang.Object
  extended by net.sf.jsefa.common.lowlevel.filter.Line

public final class Line
extends Object

A non-empty line from a stream.

Author:
Norman Lahme-Huetig

Constructor Summary
Line(String content, int lineNumber, boolean truncated, boolean lastLine)
          Constructs a new non-empty Line.
 
Method Summary
 String getContent()
           
 int getLineNumber()
           
 boolean isLastLine()
           
 boolean isTruncated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line(String content,
            int lineNumber,
            boolean truncated,
            boolean lastLine)
Constructs a new non-empty Line.

Parameters:
content - the content of the line
lineNumber - the line number (starting with 1)
truncated - true if the line is incomplete, i. e. truncated; false otherwise
lastLine - true if it is the last line of the stream; false otherwise
Method Detail

getContent

public String getContent()
Returns:
the content of the line

getLineNumber

public int getLineNumber()
Returns:
the line number (starting with 1)

isTruncated

public boolean isTruncated()
Returns:
true, if the line is incomplete, i. e. truncated; false otherwise.

isLastLine

public boolean isLastLine()
Returns:
true if this is the last non-empty line of the stream; false otherwise


Copyright © 2014. All rights reserved.