Package aQute.lib.io
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.void
mark
(int readAheadLimit) int
read()
int
read
(char[] cbuf) int
read
(char[] cbuf, int off, int len) int
read
(CharBuffer target) readLine()
boolean
ready()
void
reset()
long
skip
(long n) Methods inherited from class java.io.BufferedReader
close, lines, markSupported
Methods inherited from class java.io.Reader
nullReader, transferTo
-
Constructor Details
-
LineSeparatorBufferedReader
-
LineSeparatorBufferedReader
-
-
Method Details
-
mark
- Overrides:
mark
in classBufferedReader
- Throws:
IOException
-
reset
- Overrides:
reset
in classBufferedReader
- Throws:
IOException
-
read
- Overrides:
read
in classBufferedReader
- Throws:
IOException
-
read
- Overrides:
read
in classBufferedReader
- Throws:
IOException
-
read
- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
readLine
- Overrides:
readLine
in classBufferedReader
- Throws:
IOException
-
skip
- Overrides:
skip
in classBufferedReader
- Throws:
IOException
-
ready
- Overrides:
ready
in 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.
-