Package 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.AutoCloseable
,java.lang.Readable
public class WritableLineReader extends java.io.LineNumberReader
-
-
Constructor Summary
Constructors Constructor Description WritableLineReader(java.io.Reader reader)
WritableLineReader(java.io.Reader reader, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.LineNumberReader
- Throws:
java.io.IOException
-
read
public int read(char[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.LineNumberReader
- Throws:
java.io.IOException
-
ready
public boolean ready() throws java.io.IOException
- Overrides:
ready
in classjava.io.BufferedReader
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.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
-
-