net.rim.plazmic.mediaengine.io
Class LoadingStatus

java.lang.Object
  extended by net.rim.plazmic.mediaengine.io.LoadingStatus

Deprecated. Use SVGImage instead.

public class LoadingStatus
extends Object

Contains the functionality for describing the media loading status.

This class is used by the MediaManager to notify listeners about loading progress/status.

Since:
BlackBerry API 3.7.0

Field Summary
static int LOADING_FAILED
          Deprecated. Represents the LOADING FAILED status code, indicating that the current load has failed.
static int LOADING_FINISHED
          Deprecated. Represents the LOADING FINISHED status code, indicating that the data has finished loading.
static int LOADING_READING
          Deprecated. Represents the LOADING READING status code, indicating that the data is currently being parsed.
static int LOADING_STARTED
          Deprecated. Represents the LOADING STARTED status code, indicating that the media has started loading.
 
Constructor Summary
LoadingStatus()
          Deprecated. Constructs a new status object The default constructor.
 
Method Summary
 int getCode()
          Deprecated. Returns the media code.
 String getContentType()
          Deprecated. Returns the media content type.
 String getMessage()
          Deprecated. Returns the message.
 long getReadBytes()
          Deprecated. Returns the number of bytes read.
 String getSource()
          Deprecated. Returns the URI location of the content.
 int getStatus()
          Deprecated. Returns the loading status code.
 long getTotalBytes()
          Deprecated. Returns the total number of bytes in the content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

LOADING_STARTED

public static final int LOADING_STARTED
Deprecated. 
Represents the LOADING STARTED status code, indicating that the media has started loading.

See Also:
Constant Field Values
Since:
BlackBerry API 3.7.0

LOADING_READING

public static final int LOADING_READING
Deprecated. 
Represents the LOADING READING status code, indicating that the data is currently being parsed.

See Also:
Constant Field Values
Since:
BlackBerry API 3.7.0

LOADING_FINISHED

public static final int LOADING_FINISHED
Deprecated. 
Represents the LOADING FINISHED status code, indicating that the data has finished loading.

See Also:
Constant Field Values
Since:
BlackBerry API 3.7.0

LOADING_FAILED

public static final int LOADING_FAILED
Deprecated. 
Represents the LOADING FAILED status code, indicating that the current load has failed.

See Also:
Constant Field Values
Since:
BlackBerry API 3.7.0


Constructor Detail

LoadingStatus

public LoadingStatus()
Deprecated. 
Constructs a new status object The default constructor.

Since:
BlackBerry API 3.7.0


Method Detail

getReadBytes

public final long getReadBytes()
Deprecated. 
Returns the number of bytes read.

Returns:
An integer representing the number of bytes read.
Since:
BlackBerry API 3.7.0

getTotalBytes

public final long getTotalBytes()
Deprecated. 
Returns the total number of bytes in the content.

Returns:
An integer representing the total number of bytes.
Since:
BlackBerry API 3.7.0

getContentType

public final String getContentType()
Deprecated. 
Returns the media content type.

Returns:
A string representing the content type.
Since:
BlackBerry API 3.7.0

getSource

public final String getSource()
Deprecated. 
Returns the URI location of the content.

Returns:
The location of the content.
Since:
BlackBerry API 3.7.0

getStatus

public final int getStatus()
Deprecated. 
Returns the loading status code.

Returns:
The loading status code. One of: LoadingStatus.LOADING_STARTED, LoadingStatus.LOADING_READING, LoadingStatus.LOADING_FINISHED, LoadingStatus.LOADING_FAILED.
Since:
BlackBerry API 3.7.0

getCode

public final int getCode()
Deprecated. 
Returns the media code.

Used in conjunction with the LOADING_FAILED as the error code

Returns:
An integer representing the code.
Since:
BlackBerry API 3.7.0

getMessage

public final String getMessage()
Deprecated. 
Returns the message.

Used in conjunction with the LOADING_FAILED as the error message

Returns:
The message.
Since:
BlackBerry API 3.7.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.