public class MixedEolHandlingReader
extends java.io.Reader
readLine()
will return lines that include "bad" EOL chars.
For example an input that is detected to be CRLF that contains a line
"foo\r\r\n" will return "foo\r" for that line. This differs from
BufferedReader
in that the latter will treat all EOL chars as
starting new lines, so the above example would give "foo" and then "".
Constructor and Description |
---|
MixedEolHandlingReader(java.io.Reader in) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getDetectedEol() |
boolean |
hasMixedEol() |
int |
read(char[] cbuf,
int off,
int len) |
java.lang.String |
readLine() |
public MixedEolHandlingReader(java.io.Reader in) throws java.io.IOException
java.io.IOException
public java.lang.String getDetectedEol()
public boolean hasMixedEol()
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException