dcsimg
Pointing to a "resource" folder
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nic_Daniau
Posted On:   Monday, August 16, 2004 06:54 AM

MyClass.class.getResourceAsStream("/myFile") points to a file accessible as a resource within my app. Now I need to access a folder deployed with my app and iteratively do something with each file contained in it.


Is

			
File folder = new File(new java.net.URI(MyClass.class.getResource("/myFolder").toString()));

really the only way to do this? it seams a bit messy, especially this URL>URI conversion business?...


Thanks for your help

About | Sitemap | Contact