|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.drm.mobile1.DrmRawContent
public class DrmRawContent
This class provides interfaces to access the DRM raw content.
| Nested Class Summary | |
|---|---|
(package private) class |
DrmRawContent.DrmInputStream
This class provide a InputStream to the DRM media content. |
| Field Summary | |
|---|---|
static int |
DRM_COMBINED_DELIVERY
The DRM delivery type: Combined Delivery |
static int |
DRM_FORWARD_LOCK
The DRM delivery type: Forward-Lock |
static String |
DRM_MIMETYPE_CONTENT_STRING
The "application/vnd.oma.drm.content" mime type. |
static String |
DRM_MIMETYPE_MESSAGE_STRING
The "application/vnd.oma.drm.message" mime type. |
static int |
DRM_SEPARATE_DELIVERY
The DRM delivery type: Separate Delivery |
static int |
DRM_SEPARATE_DELIVERY_DM
The DRM delivery type: Separate Delivery in DRM message |
static int |
DRM_UNKNOWN_DATA_LEN
The DRM media content length is unknown currently |
| Constructor Summary | |
|---|---|
DrmRawContent(InputStream inRawdata,
int len,
String mimeTypeStr)
Construct a DrmRawContent object. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
The finalizer of the DRMRawContent. |
InputStream |
getContentInputStream(DrmRights rights)
Get one InputStream object to read decrypted content. |
int |
getContentLength(DrmRights rights)
Get the length of the decrypted media content. |
String |
getContentType()
Get the type of the decrypted media content. |
int |
getRawType()
Get the type of the raw DRM content. |
String |
getRightsAddress()
Get rights address from raw Seperate Delivery content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DRM_MIMETYPE_MESSAGE_STRING
public static final String DRM_MIMETYPE_CONTENT_STRING
public static final int DRM_FORWARD_LOCK
public static final int DRM_COMBINED_DELIVERY
public static final int DRM_SEPARATE_DELIVERY
public static final int DRM_SEPARATE_DELIVERY_DM
public static final int DRM_UNKNOWN_DATA_LEN
| Constructor Detail |
|---|
public DrmRawContent(InputStream inRawdata,
int len,
String mimeTypeStr)
throws DrmException,
IOException
inRawdata - object of DRM raw data stream.len - the length of raw data can be read.mimeTypeStr - the mime type of the DRM content.
DrmException
IOException| Method Detail |
|---|
public String getRightsAddress()
public int getRawType()
public InputStream getContentInputStream(DrmRights rights)
rights - the rights object contain decrypted key.
public String getContentType()
public int getContentLength(DrmRights rights)
throws DrmException
rights - the rights object contain decrypted key.
DrmExceptionprotected void finalize()
finalize in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||