java.lang.Object | +----java.io.Reader | +----java.io.BufferedReader | +----java.io.LineNumberReader
public class LineNumberReader
extends BufferedReader
A buffered character-input stream that keeps track of line numbers. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.