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); }
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: | 396 / 531 |
| Version history: | 4 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031098 - deflaterOutputStream_syncFlush_append - for incremental logging |