Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Going Insane
Going Insane [message #315717] Tue, 22 May 2007 07:22 Go to next message
Eclipse UserFriend
Originally posted by: dkrebs.tibco.com

Someone, I beg please help, this is driving me crazy. All I'm trying to do
is get an InputStream from a resource that is inside one of my plugins.
For example say I have the resource path of
com.mycompany.mybundle/files/myfile.xml, how would I get an InputStream
from that? I've tried getResourceAsStream() on the bundle class loader but
that does not work, I can get a URL using the bundle.getEntry(), but don't
know how to go from a URL to an inputstream. This has to be totally simple
but I'm not seeing it. Can anyone point me in the right direction?
Re: Going Insane [message #315718 is a reply to message #315717] Tue, 22 May 2007 07:44 Go to previous messageGo to next message
Eclipse UserFriend
If you have an URL than you can simply call URL#openStream() not?

Tom

Duncan Krebs schrieb:
> Someone, I beg please help, this is driving me crazy. All I'm trying to
> do is get an InputStream from a resource that is inside one of my
> plugins. For example say I have the resource path of
> com.mycompany.mybundle/files/myfile.xml, how would I get an InputStream
> from that? I've tried getResourceAsStream() on the bundle class loader
> but that does not work, I can get a URL using the bundle.getEntry(), but
> don't know how to go from a URL to an inputstream. This has to be
> totally simple but I'm not seeing it. Can anyone point me in the right
> direction?


--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
----------------------------------------------------
tom schindl Eclipse JFace Committer
Re: Going Insane [message #315720 is a reply to message #315718] Tue, 22 May 2007 08:04 Go to previous message
Eclipse UserFriend
Originally posted by: dkrebs.tibco.com

Thanks so much, you would not believe how long I stumbled on this. -
Duncan
Previous Topic:Programatically Expand/Collapse Nodes in PreferenceDialog
Next Topic:Enabling whole submenu
Goto Forum:
  


Current Time: Sun Nov 09 13:20:54 EST 2025

Powered by FUDForum. Page generated in 0.03577 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top