What's the correct use of new Java 7 Path class? -


i use approach load files in applications:

path path = paths.get(classloader.class.getresource(filename).touri()); 

where filename structured "/package1/package2/folder/file.lol".

are there better, simpler, or more correct methods path object? need works inside jars too.

if want access file not in jar, there better solutions. since seems want access part of jar, no!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -