commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] URLInputStream("jar:file:/Z:/some/where.jar!/META-INF/MANIFEST.MF") ???
Date Fri, 02 Sep 2005 17:08:48 GMT
Schuett, Thomas (EXT) wrote:
>Then I found your VFS project, but aren't much more happy yet:
>
>In the docu it says for jar file systems:
>   URI Format 
>   [...]
>   jar:// arch-file-uri[! absolute-path] 
>So, after a "jar" there must directly follow a "://".
>But the example a few lines below says:
>   jar:../lib/classes.jar!/META-INF/manifest.mf 
>This is a dissarcord, isn't it?
>  
As a VFS start you can do:
FileObject fo = 
VFS.getManager().resolveFile("jar:file://Z:/some/where.jar!/META-INF/MANIFEST.MF");

This will do what you want.


I'll try to polish the docu :-)

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message