Z javadocczytanie w BufferedReader
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.
Mam następujący rodzaj tekstu:
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.
czytam wiersze jak:
while(buffer.readline() != null){
}
ale problemem jest to rozważa linię dla string upto przed newline. Ale chciałbym rozważyć linię, gdy łańcuch kończy się na .
. Jak mógłbym to zrobić?