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

7
LINES

< > TinyBrain | #1008014 - utf8bufferedReader - make BufferedReader from InputStream or File

JavaX fragment (include)

static BufferedReader utf8bufferedReader(InputStream in) ctex {
  ret new BufferedReader(new InputStreamReader(in, "UTF-8"));
}

static BufferedReader utf8bufferedReader(File f) ctex {
  ret utf8bufferedReader(newFileInputStream(f));
}

download  show line numbers  debug dex   

Travelled to 1 computer(s): tvejysmllsmz

No comments. add comment

Snippet ID: #1008014
Snippet name: utf8bufferedReader - make BufferedReader from InputStream or File
Eternal ID of this version: #1008014/4
Text MD5: 8926b59e33d40ec8c88c4c1eeadd0130
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-20 18:20:33
Source code size: 241 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 11 / 2
Version history: 3 change(s)
Referenced in: [show]