public class DrmRawContent extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DrmRawContent(InputStream inRawdata,
int len,
String mimeTypeStr)
Construct a DrmRawContent object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
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.DrmException