public final class Line extends Object
| Constructor and Description |
|---|
Line(String content,
int lineNumber,
boolean truncated,
boolean lastLine)
Constructs a new non-empty
Line. |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
int |
getLineNumber() |
boolean |
isLastLine() |
boolean |
isTruncated() |
public Line(String content, int lineNumber, boolean truncated, boolean lastLine)
Line.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 otherwisepublic String getContent()
public int getLineNumber()
public boolean isTruncated()
public boolean isLastLine()
Copyright © 2014. All rights reserved.