Class LineSeparatorBufferedReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
aQute.lib.io.LineSeparatorBufferedReader
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
BufferedReader which returns the line separator string for the
previously read line.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the line separator string from the previously read line usingreadLine()or the empty string if end of file.voidmark(int readAheadLimit) intread()intread(char[] cbuf) intread(char[] cbuf, int off, int len) intread(CharBuffer target) readLine()booleanready()voidreset()longskip(long n) Methods inherited from class BufferedReader
close, lines, markSupportedMethods inherited from class Reader
nullReader, of, readAllAsString, readAllLines, transferTo
-
Constructor Details
-
LineSeparatorBufferedReader
-
LineSeparatorBufferedReader
-
-
Method Details
-
mark
- Overrides:
markin classBufferedReader- Throws:
IOException
-
reset
- Overrides:
resetin classBufferedReader- Throws:
IOException
-
read
- Overrides:
readin classBufferedReader- Throws:
IOException
-
read
- Overrides:
readin classBufferedReader- Throws:
IOException
-
read
- Specified by:
readin interfaceReadable- Overrides:
readin classReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
readLine
- Overrides:
readLinein classBufferedReader- Throws:
IOException
-
skip
- Overrides:
skipin classBufferedReader- Throws:
IOException
-
ready
- Overrides:
readyin classBufferedReader- Throws:
IOException
-
lineSeparator
Return the line separator string from the previously read line usingreadLine()or the empty string if end of file. This method can be called once per read line. Subsequent calls per read line will return the empty string.- Returns:
- The line separator string from the previously read line.
- Throws:
IOException- If an exception occurs reading.
-