×
Namespaces

Variants
Actions

Archived:GetResourceAsStream may open incorrect files (Known Issue)

From Nokia Developer 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 07:03.
60 page views in the last 30 days.