@Deprecated public class LineNumberReader extends Object
LineNumberReader
. This class
provides a workaround for an incompatibility in the
LineNumberReader
: If the last line in a file
isn't terminated with LF, or CR, or CRLF, then that line
is counted in Java 16, and beyond, but wasn't counted before.
This implementation is compatible with the latter variant,
thus providing upwards compatibility for RAT.Constructor and Description |
---|
LineNumberReader(Reader pReader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getLineNumber()
Deprecated.
|
int |
read()
Deprecated.
|
public LineNumberReader(Reader pReader)
public int read() throws IOException
IOException
public int getLineNumber()
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.