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

jquery - Invalid Assignment Left-Hand Side -

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

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -