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

7
LINES

< > BotCompany Repo | #1011769 // newPrintWriter - uses UTF-8 by default

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2501L/16K).

static PrintWriter newPrintWriter(OutputStream out) {
  ret new PrintWriter(outputStreamToWriter(out));
}

static PrintWriter newPrintWriter(Writer out) {
  ret new PrintWriter(out);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011769
Snippet name: newPrintWriter - uses UTF-8 by default
Eternal ID of this version: #1011769/2
Text MD5: 3c0d9f98efe95c2a4d7c7c37b6d5986e
Transpilation MD5: e5029f1bac8a2dceefceb2124f8a7a05
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-05 15:56:55
Source code size: 190 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 530
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011770 - outputStreamToWriter - uses UTF-8
#1013310 - utf8printWriter