O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Resources class

The Resources class extracts resources from a binary resource file. There is no public constructor for this class. In order to get a resource object, we have to use one of the two methods shown below.

Method

Parameters

Description

static Resources open (String resource)

resource—a local reference to a resource.

Creates and returns a resource object from the local JAR resource identifier.

static Resources open (InputStream resource)

resource—the stream from which to read the resource.

Creates and returns a resource object from the given input stream.

The other methods are mostly accessors for getting lists of individual resources from a file or for getting a specific resource. There are also a number of methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required