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

18
LINES

< > BotCompany Repo | #1024650 // 7z decompress test (sadly doesn't work in Java yet)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 578K of libraries. Click here for Pure Java version (6794L/49K).

1  
!7
2  
3  
!include #1024944 // Apache Commons Compres
4  
5  
lib 1400255 // xz-1.8.jar 
6  
7  
import org.apache.commons.compress.archivers.sevenz.*;
8  
import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream;
9  
10  
p-exp {
11  
  SevenZFile archive = new(loadLibrary(#1400249));
12  
  SevenZArchiveEntry e;
13  
  while not null (e = archive.getNextEntry()) {
14  
    print("Entry: " + e);
15  
    //LZMACompressorInputStream
16  
  }
17  
  archive.close();
18  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024650
Snippet name: 7z decompress test (sadly doesn't work in Java yet)
Eternal ID of this version: #1024650/7
Text MD5: 4577bce23412740bd101b0a6e35eb698
Transpilation MD5: 6b765e37a419c9a55d12c036e0217f8f
Author: stefan
Category: javax / io
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-31 13:25:42
Source code size: 442 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 982
Version history: 6 change(s)
Referenced in: [show references]