1 | lib 1005255 // apache commons compress |
2 | |
3 | import org.apache.commons.compress.compressors.*; |
4 | |
5 | static CompressorInputStream bunzip2stream(InputStream in) ctex {
|
6 | BufferedInputStream buf = in instanceof BufferedInputStream |
7 | ? (BufferedInputStream) in |
8 | : new BufferedInputStream(in); |
9 | ret new CompressorStreamFactory().createCompressorInputStream(buf); |
10 | } |
11 | |
12 | static CompressorInputStream bunzip2stream(File f) ctex {
|
13 | ret bunzip2stream(newFileInputStream(f)); |
14 | } |
Began life as a copy of #1005257
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008010 |
| Snippet name: | bunzip2stream |
| Eternal ID of this version: | #1008010/3 |
| Text MD5: | e96b6ba9544fff6c77f9d7e7336cb352 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-20 15:10:15 |
| Source code size: | 474 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 804 / 817 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |