code: public static void closeStreams(Process self) {
          try { self.getErrorStream().close(); } catch (IOException ignore) {}
          try { self.getInputStream().close(); } catch (IOException ignore) {}
          try { self.getOutputStream().close(); } catch (IOException ignore) {}
      }
docs: Closes all the streams associated with the process (ignoring any IOExceptions).
  
  @param self a Process
  @since 2.1