Questions tagged [truevfs]

TrueVFS is a virtual file system (VFS) for Java 7

TrueVFS is a virtual file system (VFS) for Java 7 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

9 questions
3
votes
0 answers

How to reduce TrueVFS dependencies

I was recently looking for a decent library to work with ZIP files. Several post on SO recommended TrueVFS, formerly TrueZip. I need to extract individual files, modify them, and put them back to archive, overriding the old one. The goal is to write…
Espinosa
  • 2,491
  • 24
  • 28
2
votes
0 answers

How to set last modified date using TrueVFS

How can I set the last modified date of a file using TrueVFS? Because accordingly to the (manual) it should be as simple as File entry = new TFile("archive.zip/dir/HälloWörld.txt"); entry.setLastModified(System.currentTimeMillis()); But this…
Gonçalo Cardoso
  • 2,253
  • 4
  • 34
  • 63
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
1 answer

"java.lang.OutOfMemoryError: Java heap space" while reading huge zip files

I have a program that load data into a DB thru namedpipes, very cool. This program was running for about 2 years and accept text files or gzip. But now appeared some zip to load and I want to improve it. But I can't put this to work, I'm getting an…
Eric Sant'Anna
  • 267
  • 4
  • 17
1
vote
1 answer

how to use truevfs META-INF/services on glassfish 4

Im trying to use truevfs library from application deployed on glassfish 4. Below code works excelent if used in a standalone java-se app, but it fails to look up the filesystem provider when used from inside glassfish. Is this suposed to work? what…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
1
vote
0 answers

Forgetting / unsetting passwords for TrueVFS

I'm writing a program that uses different TrueVFS' encrypted archives for each of its users. That means user A starts the program and after she's finished she does not terminate the program but just logs off (while the program still is…
Andreas
  • 31
  • 1
  • 2
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
0
votes
1 answer

How can I access a file through a path using TrueVFS for java?

Here's my code. /** * Load an Object from disk. */ public static T load(String path) throws IOException { File entry = new TFile(path); char[] chars = new char[(int)entry.length()]; InputStream in = new TFileInputStream(entry); …
Duckie
  • 1
  • 1
-1
votes
1 answer

Where may I find API description for TrueVFS framework?

I'm about to implement the TrueVFS api into my our application but as it happens the descriptions for this framework has dissapeared, it was earlier accessible from truevfs.java.net. A lot of information is accessible via Wayback Machine, ie. this,…
svenan
  • 45
  • 9