I want to join stderr ( getErrorStream ) and stdout ( getInputStream ) Process in one Stream , which will be used in another place. Is there anything in the Java library that will do this for me?
Note: no external libraries. I am not interested in having a solution provided, for example, by Apache Commons IO. I just want to know if there is something that comes with the JDK.
source share