package com.flurry.android;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
final class au {
    private int a;
    private long b;
    private String c;
    private String d;
    private String e;

    public au(int i, long j, String str, String str2, String str3) {
        this.a = i;
        this.b = j;
        this.c = str;
        this.d = str2;
        this.e = str3;
    }

    public final byte[] a() {
        DataOutputStream dataOutputStream;
        Throwable th;
        byte[] bArr;
        try {
            try {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                dataOutputStream = new DataOutputStream(byteArrayOutputStream);
                try {
                    dataOutputStream.writeShort(this.a);
                    dataOutputStream.writeLong(this.b);
                    dataOutputStream.writeUTF(this.c);
                    dataOutputStream.writeUTF(this.d);
                    dataOutputStream.writeUTF(this.e);
                    dataOutputStream.flush();
                    bArr = byteArrayOutputStream.toByteArray();
                    y.a(dataOutputStream);
                } catch (IOException e) {
                    bArr = new byte[0];
                    y.a(dataOutputStream);
                    return bArr;
                }
            } catch (Throwable th2) {
                th = th2;
                y.a(dataOutputStream);
                throw th;
            }
        } catch (IOException e2) {
            dataOutputStream = null;
        } catch (Throwable th3) {
            dataOutputStream = null;
            th = th3;
            y.a(dataOutputStream);
            throw th;
        }
        return bArr;
    }

    public final String b() {
        return this.c;
    }
}
