Files
rr3-apk/decompiled/sources/com/vungle/ads/internal/util/InputOutputUtils.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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 {
}
}
}