FileDocCategorySizeDatePackage
ResourceBundleReader.javaAPI DocphoneME MR2 API (J2ME)2393Wed May 02 18:00:46 BST 2007com.sun.j2me.global

ResourceBundleReader

public interface ResourceBundleReader
An interface for accessing resource files.

Fields Summary
Constructors Summary
Methods Summary
public byte[]getRawResourceData(int resourceID)
Get raw binary data for resource id.

param
resourceID resource identifier
return
resource as array of bytes or null if resource wasn't found.
throws
ResourceException if resource couldn't be read

public intgetResourceLength(int resourceID)
Gives length of the resource in bytes.

param
resourceID resource identifier
return
length of resource in bytes, -1 if resource doesn't exist in this bundle.

public java.lang.StringgetResourceName()
Method returns name of resource file used by this reader.

return
resource file name

public bytegetResourceType(int resourceID)
Get type of resource.

param
resourceID resource identifier
return
resource type

public booleanisValidResourceID(int resourceID)
Checks if given resource id exits in the bundle.

param
resourceID resource identifier
return
true if resource of given id exists in bundle.