On Wednesday, May 18, 2011 09:56:55 pm Worker [via jogamp] wrote:
>
> Hi Sven
>
> I problem is, when ShaderCode.create(.....) must read from an
> Url, classpath or jar, then its file reading capacity comes at his end.
> E.g. when the souces are in a jar with an applet.
>
> I think a read with a such code sequence
> 'MyClass.class.getResource(filename).openStream()'
> is a better solution, instead a file read, that results then in an
> acces denied exeption when the applet is not signed.
>
Not quite sure if I understand you correctly,
but the URL usually gives you all options .. well, maybe not.
So please feel free to add something diff if you think it helps,
ie InputStream .. will love to review this proposal with it's junit use-case test.
Thank you.
~Sven