net.sf.jsefa.common.lowlevel.filter
Class Line
java.lang.Object
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Line
public Line(String content,
int lineNumber,
boolean truncated,
boolean lastLine)
- Constructs a new non-empty
Line
.
- Parameters:
content
- the content of the linelineNumber
- the line number (starting with 1)truncated
- true if the line is incomplete, i. e. truncated; false otherwiselastLine
- true if it is the last line of the stream; false otherwise
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.