Anmelden
Google-Apps
Hauptmenü
Post a Comment On:
Geeks At Work
"Resource files in Java"
No comments yet. -
1 – 0 of 0
Just as we have resource files when developing with .NET, Java can read from resource files located in a directory listed for the class path.
You can use one of the following two statements depending on the context from which you want to read the resource file:
[className].class.getClassLoader().getResourceAsStream
("filename"); //to call from a static context
this.getClass().getResourceAsStream("filename"); //to call from a non-static context
posted by Nitin Reddy Katkam at
11:08 PM
on Nov 2, 2007
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
This blog does not allow anonymous comments.
Google Account
You will be asked to sign in after submitting your comment.
Please prove you're not a robot
"Resource files in Java"
No comments yet. -