Из javadoc
public String readLine()
throws IOException
Read a line of text. 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.
У меня есть следующий тип текста:
Now the earth was formless and empty. Darkness was on the surface
of the deep. God's Spirit was hovering over the surface
of the waters.
Я читаю строки как:
while(buffer.readline() != null){
}
Но проблема в том, что он рассматривает строку для строки до новой строки. Но я хотел бы рассмотреть строку, когда строка заканчивается на .
. Как бы я это сделал?