-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim,

Tim Lucia wrote:
>> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
>> InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes);
>>
>> If the class name is com.myCo.data
>>
>> You put it in like this /com/myCo/data
>>
>> Also because this stuff looks for a class loader.... I dont think it will
>> work in a STATIC class.
>> Use a normal class....
> 
> Static classes are loaded by a classloader.  You can't say getClass(),
> however.  Instead you would say MyClass.class.xxx()...

Why not? The method isn't static, so there does exist a "this" on which
getClass() could be called.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGISKq9CaO5/Lv0PARAvYKAJ0a/qTw8T2s3wiLwGxhYkBDjiSPggCcDctP
H46j2Ec083778buiPzGNTg0=
=jJPi
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to