/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.licensing.LicenseDocument
 *  com.l7tech.util.IOUtils
 */
package com.l7tech.server.licensing;

import com.l7tech.gateway.common.licensing.LicenseDocument;
import com.l7tech.server.licensing.BootstrapLicenseService;
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;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    c(BootstrapLicenseService bootstrapLicenseService, InputStream inputStream) {
        this.this$0 = bootstrapLicenseService;
        this.val$licenseStream = inputStream;
    }

    @Override
    public LicenseDocument call() throws Exception {
        byte[] byArray = IOUtils.slurpStream((InputStream)this.val$licenseStream);
        LicenseDocument licenseDocument = new LicenseDocument(new String(byArray));
        this.this$0.d.saveWithImmediateFlush(licenseDocument);
        return licenseDocument;
    }
}

