Libraryless. Click here for Pure Java version (3203L/18K).
1 | // a deflater that writes out buffered data on flush() |
2 | // (and also flushes the underlying stream) |
3 | // You can use this for highly compressed piece-wise streams |
4 | // such as logs or websockets where each piece is compressed |
5 | // using the dictionaries of earlier pieces. |
6 | // For client-side try: https://github.com/dasmoth/jszlib |
7 | static DeflaterOutputStream deflaterOutputStream_syncFlush(File f) ctex {
|
8 | ret new DeflaterOutputStream(newFileOutputStream(f), true); |
9 | } |
10 | |
11 | static DeflaterOutputStream deflaterOutputStream_syncFlush(OutputStream out) ctex {
|
12 | ret new DeflaterOutputStream(out, true); |
13 | } |
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: | 397 / 532 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |