Re: [vfs] is there any way to treat a file in a zip-file to a FileObject?
many thanks! Bernd Eckenfels 于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 > Gesendet: Friday, July 24, 2020 7:51:07 AM > An: user@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? >
Re: [vfs] is there any way to treat a file in a zip-file to a FileObject?
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 Gesendet: Friday, July 24, 2020 7:51:07 AM An: user@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?
[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?