Class ExecInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class ExecInputStream
    extends FilterInputStream
    Class to pipe an InputStream through a command using stdin/stdout. E.g.
        Reader r = new InputStreamReader(new ExecInputStream(new FileInputStream("file"), "command"));