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

17
LINES

< > BotCompany Repo | #1008747 // gzInputStream

JavaX fragment (include)

1  
static int gzInputStream_defaultBufferSize = 65536;
2  
3  
static GZIPInputStream gzInputStream(File f) ctex {
4  
  ret gzInputStream(new FileInputStream(f));
5  
}
6  
7  
static GZIPInputStream gzInputStream(File f, int bufferSize) ctex {
8  
  ret gzInputStream(new FileInputStream(f), bufferSize);
9  
}
10  
11  
static GZIPInputStream gzInputStream(InputStream in) {
12  
  ret gzInputStream(in, gzInputStream_defaultBufferSize);
13  
}
14  
15  
static GZIPInputStream gzInputStream(InputStream in, int bufferSize) ctex {
16  
  ret _registerIOWrap(new GZIPInputStream(in, gzInputStream_defaultBufferSize), in);
17  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008747
Snippet name: gzInputStream
Eternal ID of this version: #1008747/7
Text MD5: ba8eb3baf5cac9be987039633b40bdb3
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-15 16:05:09
Source code size: 575 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 618 / 688
Version history: 6 change(s)
Referenced in: [show references]