|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.plazmic.mediaengine.io.LoadingStatus
Contains the functionality for describing the media loading status.
This class is used by the MediaManager
to notify listeners about loading progress/status.
| Field Summary | ||
static int |
LOADING_FAILED
Represents the LOADING FAILED status code, indicating that the current load has failed. |
|
static int |
LOADING_FINISHED
Represents the LOADING FINISHED status code, indicating that the data has finished loading. |
|
static int |
LOADING_READING
Represents the LOADING READING status code, indicating that the data is currently being parsed. |
|
static int |
LOADING_STARTED
Represents the LOADING STARTED status code, indicating that the media has started loading. |
|
| Constructor Summary | ||
LoadingStatus()
Constructs a new status object The default constructor. |
||
| Method Summary | ||
int |
getCode()
Returns the media code. |
|
String |
getContentType()
Returns the media content type. |
|
String |
getMessage()
Returns the message. |
|
long |
getReadBytes()
Returns the number of bytes read. |
|
String |
getSource()
Returns the URI location of the content. |
|
int |
getStatus()
Returns the loading status code. |
|
long |
getTotalBytes()
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 |
public static final int LOADING_FAILED
public static final int LOADING_FINISHED
public static final int LOADING_READING
public static final int LOADING_STARTED
| Constructor Detail |
public LoadingStatus()
| Method Detail |
public final int getCode()
Used in conjunction with the LOADING_FAILED as the error code
public final String getContentType()
public final String getMessage()
Used in conjunction with the LOADING_FAILED as the error message
public final long getReadBytes()
public final String getSource()
public final int getStatus()
LOADING_STARTED, LOADING_READING,
LOADING_FINISHED, LOADING_FAILED.public final long getTotalBytes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.