Thanks, I'll update the page
-Ken
Mario Ivankovits wrote:
Hi!
http://wiki.apache.org/jakarta-commons/ExtractAndDecompressGzipFiles
Good work! I am happy with every contribution which makes it easier for
others to jump into VFS.
One thing, to make your example even more general.
Instead of:
if (extractFile.getName().getExtension().equals("gz"))
you can do something like:
if (manager.canCreateFileSystem(extractFile))
{
FileObject innerFile = manager.createFileSystem(extractFile);
}
That way, if VFS is aware of the type of the file, it automatically
"drill-down" into the file.
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]