Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20088
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-12-04 05:40 -0800 |
| References | <3c227741-7b7f-4cf8-b188-ce5268894031@googlegroups.com> |
| Message-ID | <26be3f32-1a52-4289-a7da-5d0e72427abd@googlegroups.com> (permalink) |
| Subject | Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() |
| From | zyng <xsli2@yahoo.com> |
I have gone through the ClassLoader API doc(http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getSystemResource(java.lang.String)) several times and still don't get a clue about it. This post cited ClassLoader API(http://www.xyzws.com/Servletfaq/what-is-different-between-classloadergetresourceasstream-and-classgetresourceasstream/21). However, in the API doc, I cannot find any information about leading slash. I guess Sun(or Oracle) has modified the API for new version. Anyway, I cannot get the answer from ClassLoader API. I found this post which has answered me most part: http://www.dtumanov.com/post/3355401249/java-resource-loading
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() zyng <xsli2@yahoo.com> - 2012-12-03 11:29 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() markspace <-@.> - 2012-12-03 12:07 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() Lew <lewbloch@gmail.com> - 2012-12-03 14:04 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() markspace <-@.> - 2012-12-03 15:25 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() Lew <lewbloch@gmail.com> - 2012-12-03 20:37 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() zyng <xsli2@yahoo.com> - 2012-12-04 05:40 -0800
Re: ClassLoader.getSystemResourceAsStream versus this.getClass().getResourceAsStream() Lew <lewbloch@gmail.com> - 2012-12-04 12:57 -0800
csiph-web