public class LinebreakPreservingReader
extends java.io.Reader
Constructor and Description |
---|
LinebreakPreservingReader(java.io.Reader in)
Creates a new reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getLinebreak()
Returns the linebreak after the last line read by readLine().
|
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
void |
printLinebreak(java.io.PrintStream out) |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
java.lang.String |
readLine() |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
public LinebreakPreservingReader(java.io.Reader in)
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
public java.lang.String getLinebreak()
public void mark(int readAheadLimit) throws java.io.IOException
mark
in class java.io.Reader
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.Reader
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
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 boolean ready() throws java.io.IOException
ready
in class java.io.Reader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
public void printLinebreak(java.io.PrintStream out)