Code example for ByteArrayInputStream

Methods: available

0
 
   public DrmWrapper(String var1, Uri var2, byte[] var3) throws DrmException, IOException {
      if(var1 != null && var3 != null) {
         this.mDataUri = var2;
         this.mData = var3;
         ByteArrayInputStream var4 = new ByteArrayInputStream(var3);
         int var5 = var4.available();
         DrmRawContent var6 = new DrmRawContent(var4, var5, var1);
         this.mDrmObject = var6;
         if(!this.isRightsInstalled()) {
            this.installRights(var3);
         } 
      } else { 
         throw new IllegalArgumentException("Content-Type or data may not be null.");
      } 
   } 
 
   private int getPermission() { 
      String var1 = this.mDrmObject.getContentType();
      return 2; 
Experience pair programming with AI  Get Codota for Java