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).

1  
static byte[] bunzipBytes(byte[] data) {
2  
  new ByteArrayOutputStream baos;
3  
  copyStreamAndCloseAll(bunzip2stream(new ByteArrayInputStream(data)), baos);
4  
  ret baos.toByteArray();
5  
}
6  
7  
static byte[] bunzipBytes(File file) {
8  
  new ByteArrayOutputStream baos;
9  
  copyStreamAndCloseAll(bunzip2stream(file), baos);
10  
  ret baos.toByteArray();
11  
}

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: 148 / 191
Version history: 4 change(s)
Referenced in: [show references]