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
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
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
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.
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
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,