Packages and Resource files
I was just wondering if someone could help me understand the best (or simply a good way) way to open files inside a certain package in my desktop app that Im going to create in netbeans.
I have a package like this:
and inside that I have several XSD files that I wish to load into memory, but I cant seem to even get an input stream for them no matter what I try
currently im trying this sort of thing:
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/mypackage/resources/xsdfiles/thisxsdfilename.xsd");
but I only get null returned.
Any help would be greatly appreciated
A kram a day keeps the doctor......guessing