[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #RFI-741950]: how to add ancillary file in a plugin



Hi Ghansham,

> >
> No it is an ancillary information containing the some the information
> related to my product which I want to use when reading the product.
> Actually I tried to read by using:
> getClass().getResourceAsStream(fileName);
> But it does not work. It seems such files get stripped off when the
> plugin jar gets loaded with IDV.
> 
> 

You can try:
     IOUtil.readContents(String path, Class someClass);
                      

-Jeff


Ticket Details
===================
Ticket ID: RFI-741950
Department: Support IDV
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.