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
0
votes
1 answer

TrueZip compression taking too much time

I am using TrueZip for compression. Here is what my code looks like public String compress() throws IOException { if (logLocations.isEmpty()) { throw new IllegalStateException("no logs provided to compress"); } …
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
0 answers

How to make TrueZip overwrite a temporary file?

I want to create a temporary file as a ZIP archive. The first step is basically File.createTempFile ("xxx", ".zip", null); However, now I cannot get TrueZip add anything to this "archive" -- it obviously isn't an archive yet, it is a zero-byte…
user319799
0
votes
1 answer

Platform independent way to read ZIP archives with TrueZip

This may be an obvious question but I couldn't seem to find an answer. We are using TrueZip 7.7.1 and creating instances of the ZipFile to read ZIP archives. When getting entries or input streams from the ZipFile we have to specify the entry name…
steinybot
  • 5,491
  • 6
  • 37
  • 55
0
votes
1 answer

Problems writing in archive using TrueZip and symbolic links

I use TrueZip (v 7.6.4) to write into a zip archive. I have a set of folders like this: > ls -l /home/remi drwxr-xr-x 2 remi remi 4096 sept. 10 16:49 testtz drwxr-xr-x 2 remi remi 4096 sept. 10 16:49 symlinktarget lrwxrwxrwx 1 remi remi 14…
remi
  • 3,914
  • 1
  • 19
  • 37
0
votes
1 answer

Maven update jar before packaging in WAR

I have a project where I am packaging a WAR using simple maven-war-plugin. Along with all other dependencies one of the dependency say 'abc.jar' which is getting packaged in war contains a default spring configurations which I would like to update…
SJunejo
  • 1,316
  • 4
  • 23
  • 39
0
votes
0 answers

Edit file with TrueZip in executable jar

I have desktop application. I do jar-file, but I have file into this jar what is needed to be change. I use TrueZip <> I tried: OutputStream out = new FileOutputStream("myjar.jar"+"/com/mycompany/confProperties.properties"); try{ …
RuF
  • 548
  • 1
  • 11
  • 31
0
votes
0 answers

Insert Contents of 1 Zip into another Zip with java

Okay, So I need a way to take A.zip and insert its contents into b.zip In java. Also I need it to overwrite any files in b.zip that exist in a.zip. Now, I've been trying for hours to do this with TrueZip. And I've tried a billion different ways only…
snocavotia
  • 435
  • 1
  • 3
  • 13
0
votes
1 answer

Opened file in Java and in Windows file cannot be accesed, even Java is not using file anymore

I have directory where I will look for ZIP files and then I will extract files from those ZIP files with TrueZIP 7. My problem is that when I have my application running, I cannot delete/edit file while application is running in Windows. I don't…
newbie
  • 24,286
  • 80
  • 201
  • 301
0
votes
2 answers

How to use TrueZip to compress files?

I have a file, let's say C:\source.dat. I want to compress it into a zip file C:\folder\destination.zip. I can't find a straightforward example, and the HelloWorld provided with the Maven project doesn't really apply in my case because I'm not…
ohseekay
  • 795
  • 3
  • 20
  • 37
0
votes
1 answer

FsReadOnlyArchiveFilesystemException

Hi I am trying to unzip files using TrueZIP and while doing so I get an exception de.schlichtherle.truezip.fs.archive.FsReadOnlyArchiveFileSystemException: This is a read-only archive file system! It works for some files and throws exception for…
0
votes
0 answers

Truezip change file in-place

I want to change several lines in several files in several archives. I could do it by unpacking to a temp-location, changing, and repacking. However, I got the impression that by using truezip, I should be able to do this kind of handling…
ShadowFlame
  • 2,996
  • 5
  • 26
  • 40
0
votes
1 answer

Truezip umout() failed, "cannot delete temporary file"

Anybody knows, why this could happen? When calling TFile.umount() an error occured: de.schlichtherle.truezip.fs.FsSyncException: part:file:/C:/Data/Backup/New%20Backups/F20120805T070000Z.part!/ at…
0
votes
3 answers

copy .tar.gz files to folder

I want to copy contents of a .tar.gz files to 2 folder , It has around 20 files and total unzipped size will be >20 GB. I used Truezip for this . TFile archive = new TFile(absoluteZipName); // archive with .tar.gz TFile[] archFiles =…
Abdul
  • 321
  • 4
  • 22
1 2 3 4
5