org.lobobrowser.html.io
Class WritableLineReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
java.io.LineNumberReader
org.lobobrowser.html.io.WritableLineReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class WritableLineReader
- extends java.io.LineNumberReader
Fields inherited from class java.io.Reader |
lock |
Method Summary |
void |
close()
|
int |
read()
|
int |
read(char[] b,
int off,
int len)
|
boolean |
ready()
|
void |
write(java.lang.String text)
Note: Not implicitly thread safe. |
Methods inherited from class java.io.LineNumberReader |
getLineNumber, mark, readLine, reset, setLineNumber, skip |
Methods inherited from class java.io.BufferedReader |
markSupported |
Methods inherited from class java.io.Reader |
read, read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WritableLineReader
public WritableLineReader(java.io.Reader reader,
int bufferSize)
WritableLineReader
public WritableLineReader(java.io.Reader reader)
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.LineNumberReader
- Throws:
java.io.IOException
read
public int read(char[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.LineNumberReader
- Throws:
java.io.IOException
ready
public boolean ready()
throws java.io.IOException
- Overrides:
ready
in class java.io.BufferedReader
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.BufferedReader
- Throws:
java.io.IOException
write
public void write(java.lang.String text)
throws java.io.IOException
- Note: Not implicitly thread safe.
- Parameters:
text
-
- Throws:
java.io.IOException