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

TrueZip and MultiPart form

I am currently using TrueZip to add a file to a Zip file that was uploaded to a server via MultiPartFile. The Problem Upon appending a file the zip becomes invalid. It can no longer be opened as a zip file. The Code Let's start with the relevant…
1
vote
1 answer

TrueVFS net.java.truevfs.access.TFile.TFile.rm() is unable to remove the file

TrueVFS is unable to remove the file after unmount and throws the following exception. java.nio.file.DirectoryNotEmptyException: tar:file:/D:/tmp/0554de32-5a95-4b58-a05d-d12effa68abc.tar!/ at…
Deva
  • 105
  • 1
  • 7
1
vote
2 answers

Copy file exception with TrueZIP

Here is my code to copy a war file to another using TrueZIP. TFile srcFile = new TFile(sourceFilePath); TFile destFile = new TFile(destFilePath); if (!destFile.getParentFile().exists()) { destFile.getParentFile().mkdirs(); } try { …
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
1
vote
1 answer

Exception running TrueZip

I run a simple TrueZip code: TFile src = new TFile(path + file_to_add); TFile dst = new TFile(path + outZipFile); src.cp_rp(dst); When i run the program the compiler throws (on the first…
Michael A
  • 5,770
  • 16
  • 75
  • 127
1
vote
1 answer

TrueZip works correctly when launched from netbeans/jar, but not javaws

I am using TrueZip in my application to add files/folders to a template zip then move the zip to a location specified by the user. When I run the application from Netbeans or run the .jar from command prompt everything works as I want. If the user…
osafi
  • 33
  • 4
1
vote
1 answer

Is it possible to open a TrueZIP archive from a stream?

Using TrueZIP, is there a way to open and modify an existing ZIP file from a stream (it may of course be outputted using another stream)? I have code for modifying a ZIP that works perfectly as long as I work on an existing real ZIP file on the file…
Jens Borgland
  • 753
  • 4
  • 15
0
votes
1 answer

Getting EOF exception when trying to create a file within a an archive using TrueZip

I am developing an app that needs to frequently access a zip file to add, delete, and read files. I'm looking at using truezip because it promises that I can do all these fairly easily (being able to pass arond and read from a currently zipped file…
mja
  • 69
  • 1
  • 2
  • 9
0
votes
0 answers

Error unzipping archive created by truezip which contains files greater than 2 GB

I was using java.util.zip to archive files until I encountered problems for large size files (> 2 GB). I tried switching to truezip. I was able to successfully archive the files but while extracting I get 'File fails CRC check' error. Here is the…
0
votes
1 answer

How can you get the size of a file in an archive using TrueZip?

As per the TrueZip docs, it appears that the length() method returns 0 or -1. I am updating a WAR archive and I would like to only update files whose lengths have changed. How can this be achieved? Thanks in advance, Martin
carlspring
  • 31,231
  • 29
  • 115
  • 197
0
votes
1 answer

Editing file in zip using Truezip is creating a tmp file, but not editing the file inside zip

I want to edit a file "application.properties" inside "imp" directory inside a zip "archive.zip". I'm using Truezip for this. I tried using both TFileOutputStream and TFileWriter. But both of them are creating a tmp file, but not editing the actual…
User1230321
  • 1,435
  • 4
  • 23
  • 39
0
votes
0 answers

Entry name with japanese character becomes '??????' in an archive, when updated using truezip

I am using truezip 7.7.9 package to do crud operations on archive files. When I add a file with japanese characters the entry becomes '???????' after the second updation of the archive. Steps to reproduce: Add a file in the archive with entry name…
Andrews B Anthony
  • 1,381
  • 9
  • 27
0
votes
1 answer

How to create TrueZip archive in "D:\"?

I'm using TrueZip to create archives. It seems it regards the path D:\ as a system root folder and prevents me from creating files there. My os and all programs are as per default located at C:. The drive D:\ contains personal data (documents,…
fukiburi
  • 615
  • 1
  • 7
  • 24
0
votes
1 answer

Creating encrypted Zip files that are compatible with the TrueZip Java Library (Winzip AES?)

Is try to create an encrypted ZIP file which is compatible with the TrueZIP java library. I tried 7z 7za -tzip -mem=AES256 a out.myzip -pFoo in.file but when decrypting in TrueZIP I get the exception: W/System.err:…
Alex
  • 32,506
  • 16
  • 106
  • 171
0
votes
1 answer

Unable to use OverthereConnection through commandline

I have enabled overthereconnection's through Spring IDE, but when I try running my maven-built application via commandline, I get this error: Exception in thread "main" java.util.ServiceConfigurationError: jar (Unknown file system scheme! May be the…
0
votes
1 answer

TrueZip - How to get Size of a Folder within an Zip Archive

is there a way to get the Size of a folder with TrueZip without doing it myself recursively? I'm concerned about the runtime since I'm dealing with Archives that contain lots of files. Using TrueZip 7.7.9
user1291536
  • 127
  • 1
  • 5