- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
39 lines
1.6 KiB
Java
39 lines
1.6 KiB
Java
package com.vungle.ads.internal.util;
|
|
|
|
import android.util.Base64;
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.IOException;
|
|
import java.util.zip.GZIPOutputStream;
|
|
import kotlin.io.CloseableKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.text.Charsets;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class InputOutputUtils {
|
|
public static final InputOutputUtils INSTANCE = new InputOutputUtils();
|
|
|
|
private InputOutputUtils() {
|
|
}
|
|
|
|
public final String convertForSending(String stringToConvert) throws IOException {
|
|
Intrinsics.checkNotNullParameter(stringToConvert, "stringToConvert");
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(stringToConvert.length());
|
|
try {
|
|
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream);
|
|
try {
|
|
byte[] bytes = stringToConvert.getBytes(Charsets.UTF_8);
|
|
Intrinsics.checkNotNullExpressionValue(bytes, "this as java.lang.String).getBytes(charset)");
|
|
gZIPOutputStream.write(bytes);
|
|
gZIPOutputStream.close();
|
|
String encodeToString = Base64.encodeToString(byteArrayOutputStream.toByteArray(), 2);
|
|
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(compressed, Base64.NO_WRAP)");
|
|
CloseableKt.closeFinally(gZIPOutputStream, null);
|
|
CloseableKt.closeFinally(byteArrayOutputStream, null);
|
|
return encodeToString;
|
|
} finally {
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|