TrueZIP 7.2-beta-1 with NIO.2 FileSystemProvider

Christian Schlichtherle christian at schlichtherle.de
Thu Jun 9 20:06:41 PDT 2011


Hi everyone,

 

this is a quick note to let you know that I have released a first beta
version of TrueZIP 7.2 to Maven Central.

 

Hot topic: TrueZIP now ships with the new module TrueZIP Path which contains
a FileSystemProvider implementation for JSE 7! This means you can use the
new features of NIO.2 with TPath, TFileSystem and TFileSystemProvider
implementations on top of the TrueZIP Kernel. The TrueZIP kernel has been
extended to support the new features in NIO.2, e.g. SeekableByteChannel and
the different access time types in BasicFileAttributes.

 

Also new: There is an alternate implementation of the TrueZIP Driver FILE
module, named TrueZIP Driver FILE JSE7. These modules provide a file system
driver service for the "file" scheme. The new file system driver in TrueZIP
Driver FILE JSE7 uses the default FileSystemProvider of the NIO.2 API. If
both file system drivers are available on the run time class path, then the
kernel will use the file system driver's priority property to figure which
driver is the best to use.

 

This architecture enables applications to use the JSE7 default
FileSystemProvider and the TrueZIP TFileSystemProvider concurrently. When
the TrueZIP TFileSystemProvider is used, but no archive file is accessed,
then the TrueZIP Kernel module will route all I/O calls to the TrueZIP
Driver FILE JSE7 module which will route them to the JSE7 default
FileSystemProvider.

 

This means you can even use SeekableByteChannels for randomly reading and
writing archive file entries. The TrueZIP Kernel will buffer archive
entries using a write-back caching strategy whenever necessary.

 

BTW: TrueZIP still works with JSE6. Only the NIO.2 features will not be
available. 

 

To get you started, I have set up a new Maven archetype:

 

Group Id: de.schlichtherle.truezip

Artifact Id: truezip-archetype-path

Version: 7.2-beta-1

 

The archetype for TrueZIP File* module applications has been updated, too.

 

Group Id: de.schlichtherle.truezip

Artifact Id: truezip-archetype-file

Version: 7.2-beta-1

 

For instructions how to use these archetypes, please refer to the kick-start
articles on the TrueZIP User website at:
<http://truezip.java.net/kick-start/index.html>
http://truezip.java.net/kick-start/index.html

 

Enjoy TrueZIP!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110610/85309211/attachment.html 


More information about the nio-discuss mailing list