Class LineReader
java.lang.Object
uk.ac.starlink.ecsv.LineReader
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static LineReadercreateArrayLineReader(String[] lines) Returns a LineReader instance that reads lines from an array.static LineReaderReturns a LineReader instance that just uses the lower 7 bits of each input byte for character values.abstract StringreadLine()Returns the next non-empty line of text from the input stream.
-
Constructor Details
-
LineReader
-
-
Method Details
-
readLine
Returns the next non-empty line of text from the input stream. The line will not consist of only whitespace.- Returns:
- non-blank line, or null if the input is at an end
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
createAsciiLineReader
Returns a LineReader instance that just uses the lower 7 bits of each input byte for character values.- Parameters:
in- input stream- Returns:
- line reader
-
createArrayLineReader
Returns a LineReader instance that reads lines from an array.- Parameters:
lines- line array- Returns:
- line reader
-