Libraryless. Click here for Pure Java version (2160L/14K).
1 | svoid drainStream(InputStream in) ctex { |
2 | temp in; |
3 | byte[] buf = new byte[65536]; |
4 | while (true) { |
5 | int n = in.read(buf); |
6 | if (n <= 0) return; |
7 | } |
8 | } |
Began life as a copy of #1000844
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: | #1027002 |
Snippet name: | drainStream - read to nirvana. closes stream |
Eternal ID of this version: | #1027002/3 |
Text MD5: | 403b54a9506d53064c8e6407a819d801 |
Transpilation MD5: | bd464ddfe2cd2fc37446936f2dd5d6de |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-06 14:44:55 |
Source code size: | 163 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 358 |
Version history: | 2 change(s) |
Referenced in: | [show references] |