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

6
LINES

< > BotCompany Repo | #1011774 // readerForFile - also handles .gz files

JavaX fragment (include)

static Reader readerForFile(File f) ctex {
  assertTrue("File not found", f.exists());
  if (ewic(f.getName(), ".gz"))
    ret utf8bufferedReader(newGZIPInputStream(f));
  ret utf8bufferedReader(f);
}

Author comment

Began life as a copy of #1011460

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: #1011774
Snippet name: readerForFile - also handles .gz files
Eternal ID of this version: #1011774/1
Text MD5: 1d28dbf9b5a9b9dfa7060e6c6edc2d63
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 02:50:32
Source code size: 205 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 368
Referenced in: [show references]