il$a.java 1.49 KB
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.internal.zzsp;
import com.google.android.gms.internal.zzsz;
import com.google.android.gms.internal.zztd;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

final class il$a
{
  int a;
  ByteArrayOutputStream b = new ByteArrayOutputStream();
  
  public il$a(il paramil) {}
  
  public final boolean a(zzsz paramzzsz)
  {
    zzac.zzw(paramzzsz);
    if (this.a + 1 > this.c.zznT().zzph()) {
      return false;
    }
    Object localObject = this.c.a(paramzzsz, false);
    if (localObject == null)
    {
      this.c.zznS().zza(paramzzsz, "Error formatting hit");
      return true;
    }
    localObject = ((String)localObject).getBytes();
    int j = localObject.length;
    if (j > this.c.zznT().zzoZ())
    {
      this.c.zznS().zza(paramzzsz, "Hit size exceeds the maximum size limit");
      return true;
    }
    int i = j;
    if (this.b.size() > 0) {
      i = j + 1;
    }
    if (i + this.b.size() > this.c.zznT().zzpb()) {
      return false;
    }
    try
    {
      if (this.b.size() > 0) {
        this.b.write(il.b());
      }
      this.b.write((byte[])localObject);
      this.a += 1;
      return true;
    }
    catch (IOException paramzzsz)
    {
      this.c.zze("Failed to write payload when batching hits", paramzzsz);
    }
    return true;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/il$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */