Groovy 2.2.0

org.codehaus.groovy.tools.shell.util
[Groovy] Class WrappedInputStream

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

log

protected final Logger log


 
Property Detail

inserted

ByteArrayInputStream inserted


wrapped

InputStream wrapped


 
Constructor Detail

WrappedInputStream

WrappedInputStream(InputStream wrapped)
Construct a new IO container using system streams.


 
Method Detail

available

@Override
int available()


close

@Override
void close()


insert

void insert(String chars)


mark

@Override
void mark(int readlimit)


markSupported

@Override
boolean markSupported()


read

@Override
int read()


read

@Override
int read(byte[] b)


read

@Override
int read(byte[] b, int off, int len)


reset

@Override
void reset()


skip

@Override
long skip(long n)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.