Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:GetResourceAsStream may open incorrect files (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
CompatibilityArticle
Created: User:Technical writer 1 (30 Mar 2007)
Last edited: hamishwillee (16 Aug 2013)

Description

The getResourceAsStream() method call is used to access files/resources stored inside the JAR file.

On S60 phones (including S60 2nd Edition as well as S60 3rd Edition and S60 3rd Edition, Feature Pack 1 devices) the method may in certain situations return the contents of an incorrect file if the JAR file contains a specific set of resource files.

In this case it is also possible to access the manifest file (which should not be available for this method - the only proper way to access the manifest file contents is through the getAppAproperty() method call).

For example, if the JAR file contains in the root directory the files named:

"22"
"30"
"130"

The contents of file "130" can be accessed with "/0" and "/130.

The contents of file "22" can be accessed with "/2" and "/22".

The contents of the manifest file can be accessed with "/" .

This page was last modified on 16 August 2013, at 04:03.
43 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×