Help Center

Local Navigation

Object: MimeTypeArray

Availability

BlackBerry® Device Software version 4.6 or later

The MimeTypeArray object contains an ordered collection of MIME types.

MimeTypeArray properties

Property name

Type

Description

Status

Support level

Availability

length

int

Returns the number of MIME types in the list.

read only

Not part of any standard.

4.6 or later

MimeTypeArray methods

Method name

Description

Support level

Availability

item()

Retrieves a specific node, by index, from the collection.

Not part of any standard.

4.6 or later

namedItem()

Retrieves the node with the given name property value from the collection.

Not part of any standard.

4.6 or later

Method: MimeTypeArray.item()

Availability

BlackBerry® Device Software version 4.6 or later

The item() method returns the MIME type at the specified index in the collection.

Syntax

MimeTypeArray.item( index )

Parameters

Parameter

Type

Description

index

int

The index position of the MIME type to be returned. Valid values are between 0 and MimeTypeArray.length-1 inclusive.

Return values

Returns the node at the indexth position in MimeTypeArray, or null if an invalid index position is specified.

Exceptions

None.

Method: MimeTypeArray.namedItem()

Availability

BlackBerry® Device Software version 4.6 or later

The namedItem() method retrieves the MIME type with the given name from the collection.

Syntax

MimeTypeArray.namedItem( name )

Parameters

Parameter

Type

Description

name

String

The name of the MIME type to retrieve.

Return values

Returns the MIME type with the given name, or null if no MIME type with the given name exists in the array.

Exceptions

None.

Next topic: Object: Navigator
Previous topic: Object: MimeType

Was this information helpful? Send us your comments.