Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8191441

(Process) add Readers and Writer access to java.lang.Process streams

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      Java.lang.Process exposes InputStream and OutputStreams to the subprocess spawned.
      Applications should be able to consume the input, output, and error as streams of characters, not bytes.

      Process should provide:
          BufferedReader inputReader();
          BufferedReader errorReader();
          BuffferedWriter outputWriter();

      The choice of BufferedReader allows the application to read the input with readLine or to handle the input using java.util.Stream APIs from BufferedReader.lines() that returns a Stream<String>

      The implementations wrap the corresponding streams encoded/decoded with the default Charset for the platform.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: