You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Xeno Amess <xe...@gmail.com> on 2020/09/01 08:05:36 UTC

Re: [vfs] is there any way to treat a file in a zip-file to a FileObject?

many thanks!

Bernd Eckenfels <ec...@zusammenkunft.net> 于2020年7月24日周五 下午3:21写道:

> Yes, the VFS providers can be nested and the access is controlled by a
> layered URL, something like zip:file:/dir/1.zip!2.jpg can be resolved into
> a FileObject.
>
> The second example here does the same for entries in a JAR file:
> https://commons.apache.org/proper/commons-vfs/api.html
>
> Gruss
> Bernd
>
>
> --
> http://bernd.eckenfels.net
> ________________________________
> Von: Xeno Amess <xe...@gmail.com>
> Gesendet: Friday, July 24, 2020 7:51:07 AM
> An: user@commons.apache.org <us...@commons.apache.org>
> Betreff: [vfs] is there any way to treat a file in a zip-file to a
> FileObject?
>
> As title.
> for example, 2.jpg is in 1.zip, and what I want is a FileObject
> representing 2.jpg, but I don't want to extract it to a virtual file, what
> I want is read/write it directly treating it as a FileObject.
> Is there any ways in doing this?
> If not, should I implement one?
>