Warning: session_start(): open(/var/lib/php/sessions/sess_k2llhhrnpujh53jqdpi911t3ps, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
deflaterOutputStream_syncFlush - for incremental logging [1031082]

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

13
LINES

< > BotCompany Repo | #1031082 // deflaterOutputStream_syncFlush - for incremental logging

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

Libraryless. Click here for Pure Java version (3203L/18K).

// a deflater that writes out buffered data on flush()
// (and also flushes the underlying stream)
// You can use this for highly compressed piece-wise streams
// such as logs or websockets where each piece is compressed
// using the dictionaries of earlier pieces.
// For client-side try: https://github.com/dasmoth/jszlib
static DeflaterOutputStream deflaterOutputStream_syncFlush(File f) ctex {
  ret new DeflaterOutputStream(newFileOutputStream(f), true);
}

static DeflaterOutputStream deflaterOutputStream_syncFlush(OutputStream out) ctex {
  ret new DeflaterOutputStream(out, true);
}

Author comment

Began life as a copy of #1031078

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031082
Snippet name: deflaterOutputStream_syncFlush - for incremental logging
Eternal ID of this version: #1031082/5
Text MD5: 5448705603cadaaa7282ea51f35703aa
Transpilation MD5: b3d60436eacf3b69cc7b7c9788e6c4ec
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 07:08:59
Source code size: 603 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 587 / 752
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1031098 - deflaterOutputStream_syncFlush_append - for incremental logging