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!

InputSource to String

807588Jan 23 2009 — edited Jan 23 2009
I'm having trouble comprehending how I can get a string representation of an InputSource. I'm currently linking around in the API to try to figure out how, but this is proving tedious. Is anyone aware of the call hierarchy to get the String back?

Thanks in advance

Some simple code to play with:

InputSource is = new InputSource(this.getClass().getClassLoader()
.getResourceAsStream("myResource.extension"));

//how do i get the string of myResource.extension
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2009
Added on Jan 23 2009
9 comments
7,509 views