IT. Expert System.

Android Reference

DrmRawContent


android.drm.mobile1

Class DrmRawContent



  • public class DrmRawContent
    extends Object
    This class provides interfaces to access the DRM raw content.
    • Field Detail

      • DRM_MIMETYPE_MESSAGE_STRING

        public static final String DRM_MIMETYPE_MESSAGE_STRING
        The "application/vnd.oma.drm.message" mime type.
        See Also:
        Constant Field Values
      • DRM_MIMETYPE_CONTENT_STRING

        public static final String DRM_MIMETYPE_CONTENT_STRING
        The "application/vnd.oma.drm.content" mime type.
        See Also:
        Constant Field Values
      • DRM_FORWARD_LOCK

        public static final int DRM_FORWARD_LOCK
        The DRM delivery type: Forward-Lock
        See Also:
        Constant Field Values
      • DRM_COMBINED_DELIVERY

        public static final int DRM_COMBINED_DELIVERY
        The DRM delivery type: Combined Delivery
        See Also:
        Constant Field Values
      • DRM_SEPARATE_DELIVERY

        public static final int DRM_SEPARATE_DELIVERY
        The DRM delivery type: Separate Delivery
        See Also:
        Constant Field Values
      • DRM_SEPARATE_DELIVERY_DM

        public static final int DRM_SEPARATE_DELIVERY_DM
        The DRM delivery type: Separate Delivery in DRM message
        See Also:
        Constant Field Values
      • DRM_UNKNOWN_DATA_LEN

        public static final int DRM_UNKNOWN_DATA_LEN
        The DRM media content length is unknown currently
        See Also:
        Constant Field Values
    • Constructor Detail

      • DrmRawContent

        public DrmRawContent(InputStream inRawdata,
                     int len,
                     String mimeTypeStr)
                      throws DrmException,
                             IOException
        Construct a DrmRawContent object.
        Parameters:
        inRawdata - object of DRM raw data stream.
        len - the length of raw data can be read.
        mimeTypeStr - the mime type of the DRM content.
        Throws:
        DrmException
        IOException
    • Method Detail

      • getRightsAddress

        public String getRightsAddress()
        Get rights address from raw Seperate Delivery content.
        Returns:
        the string of the rights issuer address, or null if no rights issuer.
      • getRawType

        public int getRawType()
        Get the type of the raw DRM content.
        Returns:
        one of the following delivery type of this DRM content: #DRM_FORWARD_LOCK #DRM_COMBINED_DELIVERY #DRM_SEPARATE_DELIVERY #DRM_SEPARATE_DELIVERY_DM
      • getContentInputStream

        public InputStream getContentInputStream(DrmRights rights)
        Get one InputStream object to read decrypted content.
        Parameters:
        rights - the rights object contain decrypted key.
        Returns:
        the InputStream object of decrypted media content.
      • getContentType

        public String getContentType()
        Get the type of the decrypted media content.
        Returns:
        the decrypted media content type of this DRM content.
      • getContentLength

        public int getContentLength(DrmRights rights)
                             throws DrmException
        Get the length of the decrypted media content.
        Parameters:
        rights - the rights object contain decrypted key.
        Returns:
        the length of the decrypted media content. #DRM_UNKNOWN_DATA_LEN if the length is unknown currently.
        Throws:
        DrmException
      • finalize

        protected void finalize()
        The finalizer of the DRMRawContent. Do some cleanup.
        Overrides:
        finalize in class Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 638 / . Delta: 0.01518 с