About TrueZIP File*

This module provides the TFile* classes for simple, uniform, transparent, thread-safe, read/write access to archive files as if they were virtual directories in a file system path.

This is the primary API for JSE 6 compliant TrueZIP applications: Like the API of the module TrueZIP Path, this API is just a facade for the module TrueZIP Kernel. In contrast to the TrueZIP Path API however, this API is limited to access the platform file system and any archive files within the platform file system. In contrast to the TrueZIP Kernel API, both APIs are designed to be easy to learn and convenient to use while providing a great level of flexibility. Because all virtual file system state is managed by the TrueZIP Kernel module, this module can concurrently access the same file systems than the TrueZIP Path module.

For example, an application could access an entry within an archive file using a TFile like this:

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();
}

This example presumes that the JARs of the driver modules TrueZIP Driver FILE and TrueZIP Driver ZIP are present on the run time class path.

For more examples, please use the Maven archetype for TrueZIP File* module applications as described in the Kick-Starting TrueZIP section. You might also want to download the source code of the TrueZIP Samples module.

For the API documentation, please refer to the Javadoc of the package de.schlichtherle.truezip.file

Swing GUI

This module also provides Swing GUI classes for viewing file trees and choosing entries in archive files.

For the API documentation, please refer to the Javadoc of the package de.schlichtherle.truezip.file.swing