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

11
LINES

< > BotCompany Repo | #1035982 // bunzipBytes

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

Uses 865K of libraries. Click here for Pure Java version (127L/1K).

static byte[] bunzipBytes(byte[] data) {
  new ByteArrayOutputStream baos;
  copyStreamAndCloseAll(bunzip2stream(new ByteArrayInputStream(data)), baos);
  ret baos.toByteArray();
}

static byte[] bunzipBytes(File file) {
  new ByteArrayOutputStream baos;
  copyStreamAndCloseAll(bunzip2stream(file), baos);
  ret baos.toByteArray();
}

Author comment

Began life as a copy of #1033067

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035982
Snippet name: bunzipBytes
Eternal ID of this version: #1035982/5
Text MD5: 25cd34d02bca40837d034aa7ffe84117
Transpilation MD5: a779204d04febfbad9d5401e23cec467
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 01:15:23
Source code size: 344 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 193
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)