Libraryless. Click here for Pure Java version (2386L/15K).
svoid drainErrorStreamToConsole(Process process, IPred<S> printIf, IF0<AutoCloseable> enter) { thread "Drain error stream" { temp enter!; DataInputStream err = new(process.getErrorStream()); S line; while ping ((line = err.readLine()) != null) { if (printIf == null || printIf.get(line)) print("ERR: " + line); } } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027264 |
| Snippet name: | drainErrorStreamToConsole |
| Eternal ID of this version: | #1027264/5 |
| Text MD5: | 1a87f506a9c9879f9ee9abb3b8f59d28 |
| Transpilation MD5: | 903dddbbe1482acfb744f44c958de4cd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-28 12:33:28 |
| Source code size: | 364 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 383 / 498 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |