Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1008010 // bunzip2stream

JavaX fragment (include)

lib 1005255 // apache commons compress

import org.apache.commons.compress.compressors.*;

static CompressorInputStream bunzip2stream(InputStream in) ctex {
  BufferedInputStream buf = in instanceof BufferedInputStream
    ? (BufferedInputStream) in
    : new BufferedInputStream(in);
  ret new CompressorStreamFactory().createCompressorInputStream(buf);
}

static CompressorInputStream bunzip2stream(File f) ctex {
  ret bunzip2stream(newFileInputStream(f));
}

Author comment

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: 565 / 573
Version history: 2 change(s)
Referenced in: [show references]