Questions tagged [truezip]

Q&A for the TrueZIP Java Open Source Software project.

TrueZIP is a Java based virtual file system (VFS) which enables client applications to perform CRUD (Create, Read, Update, Delete) operations on archive files as if they were virtual directories, even with nested archive files in multithreaded environments

As a library, TrueZIP provides simple, uniform, transparent, thread-safe, read/write access to archive files as if they were virtual directories in a file system path.

As a framework, TrueZIP provides the interfaces and classes to write file system drivers which plug-in to its federated file system space.

For more information, please refer to the TrueZIP User Website

73 questions
1
vote
1 answer

How to get bytes of TFile using TrueZip API (without extracting) in Java

How can I read binary file (get byte array) inside zip archive? I'm using TrueZip. My example: import de.schlichtherle.truezip.file.TFile; import java.util.HashMap; public class Archive { private final TFile archive; // String in HashMap…
t4d_
  • 493
  • 1
  • 7
  • 14
1
vote
1 answer

How to create a password protected Zip Stream using TrueVFS's (was TrueZip) ZipOutputStream without keymanager?

import net.java.truevfs.comp.zip.ZipOutputStream; ... ZipOutputStream zos = new ZipOutputStream(outPipe); zos.setCryptoParameters( ## How to create those Crypto Parameters ### ); The cryptoparameters have to be of the interface…
Alex
  • 32,506
  • 16
  • 106
  • 171
1
vote
3 answers

how to get file size in truzip

I am using truezip version (7.7.9) to update a archive file. The way I am doing it is as follows File entry = new TFile(filepath); writer = new TFileWriter(entry); writer.append("MyString"); writer.flush(); long fileSize = entry.length(); // which…
Andrews B Anthony
  • 1,381
  • 9
  • 27
1
vote
0 answers

TrueFile.umount(archive) goes to finally method

I am using truezip (7.7.9 version) to update an archive file in my Java code. I am doing the above said in a try catch block when the TFile.umount is invoked, the code automatically skips the immediate lines in the try block and goes to…
Andrews B Anthony
  • 1,381
  • 9
  • 27
1
vote
1 answer

How to disable truezip recursive unzipping?

Is their any setting to disable truezip recursive unzipping? I want to copy inner Zip to a different path but unable to get inner zip as TFile instance. zip:zip:file:/C:/Users/dbelwal/Documents/Autloader/tmp/6907267-xml.zip!/6907267-mm.zip!/…
Deekshant
  • 127
  • 6
1
vote
1 answer

TrueZip unable to extract file from archive

I am creating a java app that will extract the embedded thumbnail inside of a Powerpoint (PPTX) document. Since pptx files are zip archives, I am trying to use TrueZip to get the thumbnail found inside of the archive. Unfortunately whenever I try…
Zaid Amir
  • 4,727
  • 6
  • 52
  • 101
1
vote
2 answers

using truezip in shadowJar built with gradle

i have a shadowJar compiled with gradle which uses truezip to get some files out of a zip-file. i get this exception using it: Exception in thread "main" java.util.ServiceConfigurationError: file (Unknown file system scheme! May be the class path…
i.n.g.o.
  • 51
  • 6
1
vote
1 answer

Adding new files to a zip archive with Truezip

I've searched and searched, so trust me when I say I'm truly stumped. Note: I'm forced to use Java 6. I need to insert an XML file into a zip archive programmatically with Java but without extracting the archive and recompressing it. I was pointed…
1
vote
1 answer

How to create zip file using TrueZip?

The example on their website is File entry = new TFile("archive.zip/dir/HälloWörld.txt"); Writer writer = new TFileWriter(entry); try { writer.write("Hello world!\n"); } finally { writer.close(); } In my use case, I have the following…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
1
vote
1 answer

Extract contents of a large zip file

I am trying to extract contents of a zip file of size ~500MB containing around 250K files. Here's what I am trying to do - import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import…
Shyam
  • 76
  • 8
1
vote
1 answer

Decompress folder without overwriting new files

I want to decompress a large folder in ZIP format with nested subdirectories in a directory that already exists. The files inside the ZIP folder can exist in the decompressed directory. I need to keep the previous files only when the date of that…
1
vote
1 answer

Truezip returning unsupported compression method error when extracting large files

Truezip 6 and 7 returning error message "compression method 9 is not supported" when extracting any files greater then 2GB that were compressed using windows compressing method. (This is achieve by highlighting the file that is 2GB or bigger and…
half adder
  • 11
  • 2
1
vote
2 answers

Can TrueZip be used to seek through streams

Let's assume I have a large zip file on a server and I am interested in extracting just a subset from it over the HTTP. Is this possible with TrueZip and if yes, how? The idea is not to have to download the entire zip, but just the zip header, do…
carlspring
  • 31,231
  • 29
  • 115
  • 197
1
vote
1 answer

TrueZip on Android, UnsupportedCharsetException: IBM437

I'm trying to open zip file on Android 4.3 emulator using TrueZip 7.7.3 the line TArchiveDetector ad = new TArchiveDetector("myext", new ZipDriver(IOPoolLocator.SINGLETON)); throws java.lang.ExceptionInInitializerError caused by…
user1766873
1
vote
1 answer

How to disable TrueZIP key manager services?

I want to use TrueZIP 7.7 library in a server to uncompress user-uploaded archives. I don't plan to work with encrypted archives, and especially, since this is a server, I don't need a Swing popup to ask for a key. Yet when I created some simple…
user319799