org.geotoolkit.io
Interface LineReader
- All Superinterfaces:
- Closeable
public interface LineReader
- extends Closeable
Read lines of text from various sources like BufferedReader, RandomAccessFile
or multi-lines String. Implementations of this interface accept the Unix and Windows
style of End Of Line (EOL).
Instances of LineReader are created by the static methods defined in
LineReaders.
- Since:
- 3.02
- Version:
- 3.19
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
DataInput.readLine(),
BufferedReader.readLine()
- Module:
|
Method Summary |
String |
readLine()
Returns the next line, or null if there is no more line to read. |
readLine
String readLine()
throws IOException
- Returns the next line, or
null if there is no more line to read.
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.
- Returns:
- The next line, or
null on End Of File (EOF).
- Throws:
IOException - If an error occurred while reading the line.
Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.