Class RedirectInput

java.lang.Object
java.io.InputStream
aQute.remote.agent.RedirectInput
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
Shell

public class RedirectInput extends InputStream
An filter stream that takes a string from the supervisor and then provides it as a read to the user of this Input Stream. It also dispatches the text to an original stream.It does not use Piped*Stream because they turned hard to break. This implementation uses a ring buffer.
  • Constructor Details

    • RedirectInput

      public RedirectInput(InputStream in) throws IOException
      Create a redirector input stream with an original input stream
      Parameters:
      in - the original
      Throws:
      IOException
    • RedirectInput

      public RedirectInput()
      Create a redirector without an original
  • Method Details