Better documentation for getResourceAsStream?

Here is the documentation of RIM for Class.getResourceAsStream ():

RIM implementation notes: this method searches the resource from the directory in which the current JDP project file is located. By default, it is assumed that this JDP file resides in the parent directory of the package of the current project space. Thus, the package space tree (for example, com/rim/PackageName) is added to name so that the search begins from this space package, that is, in the source directory of the current project. However, if the current JDP project file does not lie in its presumed location, the behavior above prevent the resource located. In this case, the user must add a slash (/) in the name of the resource before calling getResourceAsStream. This treats the name as an absolute path, which is compared to a tree whose root is the location of the JDP file.

It's terribly confusing (when getResourceAsStream runs, he is not on the development of the user machine and the JDP file or the source directory of the project are available) and is certainly wrong for the Eclipse plug-in, which has done away with the JDP files. Unfortunately, this excerpt comes from the most recent and OS 6 docs.

Y at - it uses a more coherent explanation of the search than getResourceAsStream path? Realistic examples of different cases, which show when a leader "/" are necessary, when to add a path prefix, etc, would be very useful. A recent post describes a way to open an input stream for a resource in another module, because getResourceAsStream() doesn't seem to work for this:

ContentConnection cc = (ContentConnection)Connector.open("cod://module/path/file.txt");

Is - this recommended? Or is there maybe a way to getResourceAsStream() research dependent .cod files the same way as Bitmap.getBitmapResource ()?

Not directly.  The library can expose this via a clean method call.

Tags: BlackBerry Developers

Similar Questions

  • any new documentation for Beta 3.0 - 2.7.5 procedures do not work on 3.0

    I have searched so documentation for controlling services on systems without an agent
    through a client of hyperic on another system. I found a few links, but I tried them
    Beta 3.0 open source and can't seem to find drop downs that procedure says to click on.
    http://communities.VMware.com/message/1911378#1911378
    http://communities.VMware.com/message/1912082#1912082
    http://communities.VMware.com/thread/347069?TSTART=0
    http://support.Hyperic.com/Confluence/display/DOCSHQ27/network+services

    On the one hand, I can't find where tell you him what monitor systems (ping)?
    Seems Windows and the environment have changed?

    Sorry for the lack of documentation for 3.0, we are still feverishly on the completion of the features and documentation will follow soon.  However, most of the existing documentation will apply to HQ 3.0.

    You can essentially follow the same procedure to activate the analysis you're looking for.  Instead of 'under' the Services section, you now click on Services so that the section opens.  You can also get on the same page for creating service by accessing any platform and clicking on the TOOLS MENU, and then click the new Service platform.  I hope this helps.

  • Documentation for config.xml for playbook

    Hey RIM,.

    When you're you going to get out of the documentation for the file config.xml... all that right with a graphical interface for us in the web plugin eclipse...

    I don't expect the same for the playbook, but really I don't know what should be the content of this file... No documentation would be not good (or if someone could tell me that would be great).

    Right now, I'm just coding in the dark... I do a little better comments about what I think should be allowed in the XML (such as adding other areas...)

    EC

    Here's the documentation you request: technical - grade Configuration Document .

    This document is in the section BlackBerry WebWorks Developer Guides Web site.

    Note: there is at least an inconsistency with the supported elements.  The element ' rim: transitionEffect "is not supported by the SDK WebWorks for PlayBook (but is for the Smartphone SDK).  I have a pending request with our documentation team to provide details on the other gap analysis.

    Sincerely,

    Adam

  • I upgraded to firefox 3.6 beta 3 for firefox 12 and now, none of the sites Spruz I own or am administrator on just shows the Member of the groups of pictures are huge

    I upgraded to firefox 3.6 beta 3 for firefox 12 and now, no sites Spruz I own or am admin on watch just the Member groups, photos and videos are huge...

    My site about Spruz shows members of the groups, photos and great videos... Instead of members photos taking place a 1 1/2 X 4 space (3 rows) in the upper left corner of my site, they are falling is greater than the length of the first page in single file... Groups and videos take place amid all the first page...

    As I have something that is compatible with the site that I admit needs to be corrected... It appears that way on all Spruz sites I belong to...

    I can get the photos to display in 3 columns, if I do this:

    Orange Firefox button or classic menu Tools > Options > content

    In the section fonts and colors, click on the Advanced... button.

    Change Minimum font size None and OK out of Options.

    But most people won't do that. I prefer a minimum of at least 10 font size.

    Then... How to fix it. How the thumbnails are size, is that they 10em with a font size of basis of 5px. If the minimum size is set to 10px, double images in height and width.

    It would be more logical if the base in your style sheet font size was larger. Can change you it? If so, try to double the font size and to halve the size of the relative picture:

    In http://languagesofourancestors.spruz.com/dhtml/corestyle/xstyle.css


    /*All Cards Small*/ .SUI-UserPic.small, .SUI-ImageCard.small, .SUI-VideoCard.small { font-size: 10px;}

    /* User Pics */ (4 lines down) .SUI-UserPic .SUI-CardImage { display: block; width: 5em; height: 5em; overflow: hidden; border: 1px solid #aaa; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px;} .SUI-UserPic .SUI-CardImage img { width: 5em; min-height: 5em; border: 0 none;} .SUI-UserPic .PopInfo {line-height: normal; display: none; width: 140px; position: absolute; z-index: 2; top: 4em; left: 0; margin: 0 auto;}

    I think that will be more widely compatible. There may be some details that I missed, but hope this helps.

    I don't know why the minimum font size has not been applied as well in Firefox 3.6, but I suspect that this is the new normal.

  • documentation for Word 2000, library?

    Is there documentation for Word2000 library that underlies the Wordreport? I can't found. You can do things with Wordreport, but if you want to correct the document, for example, paragraph, or tab formatting, you must use Word 2000 calls.

    http://msdn.Microsoft.com/en-us/library/aa164012%28V=Office.10%29.aspx

    all associated Word will be in the end of Microsoft documentation reference

  • Print the documentation for the structure of the event?

    Hi all

    Work with the documentation "printing" in 2012 has Labview and noticed that there is not an obvious way to create documentation for each separate event in a structure of the event.  Since it is possible to show each individual event is a separate diagram in html file, it seems that it would be useful to be able to create a description of an event.  Please let me know if there is a way to do this.  Thank you.

    GSinMN

    Try to use labels of the integrated structure.  You will have a single comment for each case of the event.  Start your comments with a hash-tag "#" and the bookmark manager to become your best friend for the printing of your help file.  (Of course, you have to 2013 for Bookmarks work)

  • HP Photosmart 3110 referred to the documentation for the printer. Error 0xe18a001

    HP Photosmart 3110 referred to the documentation for the printer. Error 0xe18a001

    Hello caromuna,

    It seems that other users have found a way to completely reset the printer back to the default settings, which can help with this question.

    The reset is discussed in this forum thread and seems to be a bit difficult to fill. Let me know if it helps to solve your problem.

    Photosmart 3310 ink system failure

  • Micro 7, printing with hp4215... stops printing... screen on printer reads... wrong cartridge... then see the product documentation for more details... cannot find

    Micro 7, printing with hp4215... stops printing... screen on printer reads... wrong cartridge... then see the product documentation for more details... cannot find

    http://welcome.HP.com/country/us/en/support.html

    Link HP drivers and manuals.

    http://welcome.HP.com/country/us/en/contact_us.html

    Details of HP.

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to / stationed there.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • 7280 all-in-one message says print cartridge alignment failed. see the documentation for the product?

    My 7280 all-in-one printer message indicates the alignment of the failed print cartridge.  See the product documentation.  I tried to do a literature search and landed on this link.  Where can I find documentation for my printer?

    This is the document that you are looking for.  You can find all documents and even more for your printer here.  Let me know what happens.

  • How can I delete Google Chrome BETA? for Windows?

    I registered in Chrome with my Google account! and then went to the Web Page of Google Chrome BETA and installed the BETA version for download "ChromeSetup.exe" tool... and I deleted the 39.0.2171.71 file and NOW I'm STUCK with the BETA version. Ive released the BETA version... ALL DELETED the Cache data to {C:\Users\***\AppData\Local\Google and did a search index on Windows 7 files to EVERY vestige.} AND nothing.

    I get VERY familiar error when I download "ChromeSetup.exe" [NO BETA} tool

    It says something in the sense of "current profile data is most recent version install you.

    I can't GET RID OF Google Chrome BETA now... the FIRST time that I'm entered in Google Chrome BETA was when I signed manually out of The Browser with my GMail and all that.

    PLEASE HELP ;)

    Thank you

    Dean Pepler abie

    Hello

    I would like you to post your question in the following link for assistance:

    https://support.Google.com/chrome/?hl=en

    I hope this helps.

  • 10.1 beta 2 for OSX broken?

    Hello

    I just downloaded the SDK version and Simulator 10.1 Beta 2 for OSX. However, when I try to open the dmg files, they are both not recognized as valid dmg files. The md5 of the SDK is correct, the md5 of the Simulator is wrong. I 5a74f3fd97cccd21f06404e04c6edb33, even after the download a second time.

    If someone can confirm this?

    Marcel

    fixed

  • How can I create a better UI for Blackberry?

    How can I create a better UI for Blackberry?

    Do you it with love.

    or you could try this.

  • What is the better seting for monitor lcd 32 inches?

    Original title: manitor seting

    What is the better seting for manitor lcd 32 inches?

    Hey Riza,


    I understand that you need to define the best display of your LCD monitor.
     
    You can see the following article for the best display of your LCD monitor.
     
    Get the best display on your monitor

     
    If you have problems of Windows in the future, let us know and we would be happy to help you.
  • No documentation for worm VPN clients. 5

    Hello

    Why it seems that there is no documentation on the Cisco site for VPN clients past version 4.6? There are release notes, but no user guide. We recently bought an ASA, but the accompanying CD has an older version of client.

    Thank you

    -Steve

    Steve,

    Yes, you are right. There is no new documentation for the 4.8, 4.9 and 5.0.00.0340 to output other than the text release notes posted with the VPN Client.

    The reason is, other than new features to support some new OS (Vista 32 Bit OS), etc., between 4.6 and 5.0 configuration steps are the same. Then you should be good to go with the 4.6 Setup guide. If this is a new Client VPN deployment, I go through the detailed release notes and be aware of known issues that may affect your network.

    Kind regards

    Arul

    * Please Note If this can help *.

  • Where is the documentation for cloud connectors?

    I'm really excited about gotowebinar cloud connectors.  It was installed easily with just a few clicks!  Now, I need to know how to use them.  Where can I find documentation for it?

    TIA!

    Notice all the app documentation can be found on Topliners AppCloud

Maybe you are looking for

  • locker of 6s... :(

    My daughter has locked and forgotten the password for his 6 sec, it has never been synchronized on iTunes.  Is - fixable?

  • WHEN SHOULD I UPGRADE MY SAFARI

    When should I upgrade my safari?

  • GTA windows 7 x 64 en

    Hola... pueden con help me porfavor el enlace para descargar el toolkit GTA (report generation toolkit), windows 7 x 64. are instale los drivers... Pero not self me instalan some packages En direccopn http://zone.ni.com/devzone/cda/tut/p/id/10383> do

  • Monitor x 2511 HP: HP x 2511 monitor detects the HDMI signal

    My HP x 2511 now has a problem in that it does not detect HDMI.  It is able to detect VGA, however.  It is likely is a hardware problem in the monitor?  It of something I should get it fixed or is - this monitor a lost cause? I bought this monitor wi

  • macros personal

    Hey,. I would like to open a PERSONAL.xlsb macro to manipulate data to a TDMS file is imported into Excel (via import add-in for TDMS files). Everything must go automatically, but the problem with import add-in for excellent TDMS files is that it alw