My Tech Notes
Search This Blog
Java: How to convert java.net.URL to java.io.File?
File f;
try {
f = new File(url.toURI());
} catch(URISyntaxException e) {
f = new File(url.getPath());
}
More detail:
Kohsuke Kawaguchi's Blog
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment