| Author |
Difference between the getResource and getResource as a Stream
|
kiranb reddy
Greenhorn
Joined: Sep 28, 2008
Posts: 20
|
|
Hi,
Could anyone please, explain the difference between the getResource and getResource as a stream.
Please explain me with an example.
Thanks.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56150
|
|
|
Was the Javadoc not clear? What aspects need clarification?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19214
|
|
One returns a URL, one returns an InputStream. That's pretty clear to me.
In fact, getResourceAsStream is actually shorthand for the following:
Copied directly from the Java 6 source code of ClassLoader.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Difference between the getResource and getResource as a Stream
|
|
|