Package org.jline.utils
Class PumpReader
- java.lang.Object
-
- java.io.Reader
-
- org.jline.utils.PumpReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class PumpReader extends java.io.Reader
-
-
Constructor Summary
Constructors Constructor Description PumpReader()
PumpReader(int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
java.io.InputStream
createInputStream(java.nio.charset.Charset charset)
java.io.Writer
getWriter()
int
read()
int
read(char[] cbuf, int off, int len)
int
read(java.nio.CharBuffer target)
boolean
ready()
-
-
-
Method Detail
-
getWriter
public java.io.Writer getWriter()
-
createInputStream
public java.io.InputStream createInputStream(java.nio.charset.Charset charset)
-
ready
public boolean ready()
- Overrides:
ready
in classjava.io.Reader
-
available
public int available()
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(java.nio.CharBuffer target) throws java.io.IOException
- Specified by:
read
in interfacejava.lang.Readable
- Overrides:
read
in classjava.io.Reader
- 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
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
-