[jboss-user] [Beginners Corner] - Re: File Path in EAR..!!!
jaikiran
do-not-reply at jboss.com
Wed Jul 12 07:12:10 EDT 2006
anonymous wrote : third party method that takes as input object of type java.io.Reader
This is what you can do:
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("conf/config.xml");
|
| InputStreamReader inputStreamReader = new InputStreamReader(inputStream) ;
|
| thidPartyLib.someAPI(inputStreamReader);
Have a look at the InputStreamReader:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStreamReader.html
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957314#3957314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957314
More information about the jboss-user
mailing list