Re: VFS how to read gzipped content from tar file

2007-11-07 Thread Ken Tanaka
Actually the tarfile is not compressed, files inside the tar file are gzipped files, for example tar tvf archive.tar drwxrwsr-x ktanaka/ktanaka 0 2007-10-30 12:45:26 tardir/ -rw-rw-r-- ktanaka/ktanaka 56 2007-10-30 12:44:37 tardir/content.txt.gz I'd like to directly create a content.txt file

Re: VFS how to read gzipped content from tar file

2007-11-06 Thread Mark Fortner
You mentioned that you wanted to look into a tarball (gzipped tar file), but the URL you gave was only for a tar file. Something like this should work: gz:tar:file:///extra/data/tryVfs/archive.tar.gz!/myfile.txt Hope this helps, Mark On 10/31/07, Ken Tanaka < [EMAIL PROTECTED]> wrote: > > Than

Re: VFS how to read gzipped content from tar file

2007-11-06 Thread Ken Tanaka
To follow up: I never did get a direct extract of the gzipped content from inside of a tar file, but took a multistep approach to get the files I want. I've documented what I've come up with so far: http://wiki.apache.org/jakarta-commons/ExtractAndDecompressGzipFiles I started a VfsCookbook p

Re: VFS how to read gzipped content from tar file

2007-10-31 Thread Ken Tanaka
Thanks for the suggestion, but I'm getting a different error when I try that: org.apache.commons.vfs.FileSystemException: Could not resolve file "gz:tar:file:///extra/data/tryVfs/archive.tar!/!/". at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.

Re: VFS how to read gzipped content from tar file

2007-10-31 Thread Philippe Poulard
Hi Ken, Ken Tanaka a écrit : FileObject gzTarFile = fsManager.resolveFile("tar:gz:/archive.tar!/tardir/content.txt.gz"); try this : fsManager.resolveFile("gz:tar:/archive.tar!/tardir/content.txt.gz"); -- Cordialement, /// (. .) ooO--(_)--Ooo

VFS how to read gzipped content from tar file

2007-10-30 Thread Ken Tanaka
I would like to create an uncompressed file from a compressed file inside of a tar archive. Can VFS allow me to do this in one step? I can get the compressed.gz file from archive.tar as a file on disk, then I can decompress the gzip file and then delete the .gz version. If there is an example,