Code example for ByteArrayInputStream

Methods: available

0
        } 
 
        mDataUri = uri;
        mData = drmData;
 
        ByteArrayInputStream drmDataStream = new ByteArrayInputStream(drmData);
        mDrmObject = new DrmRawContent(drmDataStream, drmDataStream.available(),
                                       drmContentType);
        // Install rights if necessary. 
        if (!isRightsInstalled()) { 
            if (LOCAL_LOGV) {
                Log.v(LOG_TAG, "DRM rights not installed yet.");
            } 
            installRights(drmData);
        } 
    } 
 
    /** 
     * Get permission type for the decrypted content-type. 
     * 
     * @return the permission