|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.codehaus.groovy.tools.shell.util.WrappedInputStream
class WrappedInputStream extends InputStream
In order to modify JLine Behavior, we need to wrap the IO streams so we can hack into them This allows autoindent and redisplaying the chars typed so far after exceptions during completion
Field Summary | |
---|---|
protected Logger |
log
|
Property Summary | |
---|---|
ByteArrayInputStream |
inserted
|
InputStream |
wrapped
|
Constructor Summary | |
WrappedInputStream(InputStream wrapped)
Construct a new IO container using system streams. |
Method Summary | |
---|---|
int
|
available()
|
void
|
close()
|
void
|
insert(String chars)
|
void
|
mark(int readlimit)
|
boolean
|
markSupported()
|
int
|
read()
|
int
|
read(byte[] b)
|
int
|
read(byte[] b, int off, int len)
|
void
|
reset()
|
long
|
skip(long n)
|
Methods inherited from class InputStream | |
---|---|
close, mark, reset, available, read, read, read, skip, markSupported, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected final Logger log
Property Detail |
---|
ByteArrayInputStream inserted
InputStream wrapped
Constructor Detail |
---|
WrappedInputStream(InputStream wrapped)
Method Detail |
---|
@Override int available()
@Override void close()
void insert(String chars)
@Override void mark(int readlimit)
@Override boolean markSupported()
@Override int read()
@Override int read(byte[] b)
@Override int read(byte[] b, int off, int len)
@Override void reset()
@Override long skip(long n)
Copyright © 2003-2013 The Codehaus. All rights reserved.