Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get full path from InputStream ?

807588Mar 26 2009 — edited Mar 30 2009
Is it possible to get the full path to a XML file read the following way:
InputStream realData = getClass().getClassLoader().getResourceAsStream("testfile.xml");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2009
Added on Mar 26 2009
14 comments
18,975 views