package com.l7tech.server.licensing;

import com.l7tech.gateway.common.licensing.LicenseDocument;
import com.l7tech.util.IOUtils;
import java.io.InputStream;
import java.util.concurrent.Callable;

class c implements Callable<LicenseDocument> {
   final InputStream val$licenseStream;
   final BootstrapLicenseService this$0;

   c(BootstrapLicenseService var1, InputStream var2) {
      this.this$0 = var1;
      this.val$licenseStream = var2;
   }

   public LicenseDocument call() throws Exception {
      byte[] var1 = IOUtils.slurpStream(this.val$licenseStream);
      LicenseDocument var2 = new LicenseDocument(new String(var1));
      this.this$0.d.saveWithImmediateFlush(var2);
      return var2;
   }
}
