Package: org.codehaus.groovy.tools.shell.util

## [Groovy] Class WrappedInputStream

- org.codehaus.groovy.tools.shell.util.WrappedInputStream

- All Implemented Interfaces and Traits:
    Closeable

      @DeprecatedDeprecated
      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

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `private ByteArrayInputStream` | `inserted`
    `private InputStream` | `wrapped`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `WrappedInputStream (InputStream wrapped)` Construct a new IO container using system streams.
    `WrappedInputStream ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `int` | `available()`
    `` | `void` | `close()`
    `` | `void` | `insert(String chars)`
    `` | `void` | `mark(int readlimit)`
    `` | `boolean` | `markSupported()`
    `` | `int` | `read()`
    `` | `int` | `read([B b)`
    `` | `int` | `read([B b, int off, int len)`
    `` | `void` | `reset()`
    `` | `long` | `skip(long n)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class InputStream` | `read, read, read, close, mark, readAllBytes, readNBytes, readNBytes, transferTo, skip, available, markSupported, reset, nullInputStream, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Property Detail

    - #### private ByteArrayInputStream inserted

    - #### private final InputStream wrapped

  - ### Constructor Detail

    - #### WrappedInputStream(InputStream wrapped)

      Construct a new IO container using system streams.

    - #### WrappedInputStream()

  - ### Method Detail

    - #### @OverrideOverride int available()

    - #### @OverrideOverride void close()

    - #### void insert(String chars)

    - #### @OverrideOverride void mark(int readlimit)

    - #### @OverrideOverride boolean markSupported()

    - #### @OverrideOverride int read()

    - #### @OverrideOverride int read([B b)

    - #### @OverrideOverride int read([B b, int off, int len)

    - #### @OverrideOverride void reset()

    - #### @OverrideOverride long skip(long n)