Rabbit-R1/original r1/java/sources/org/webrtc/CallSessionFileRotatingLogSink.java
2024-05-21 17:08:36 -04:00

36 lines
1,009 B
Java

package org.webrtc;
import org.webrtc.Logging;
/* loaded from: classes3.dex */
public class CallSessionFileRotatingLogSink {
private long nativeSink;
private static native long nativeAddSink(String str, int i, int i2);
private static native void nativeDeleteSink(long j);
private static native byte[] nativeGetLogData(String str);
public static byte[] getLogData(String str) {
if (str == null) {
throw new IllegalArgumentException("dirPath may not be null.");
}
return nativeGetLogData(str);
}
public CallSessionFileRotatingLogSink(String str, int i, Logging.Severity severity) {
if (str == null) {
throw new IllegalArgumentException("dirPath may not be null.");
}
this.nativeSink = nativeAddSink(str, i, severity.ordinal());
}
public void dispose() {
long j = this.nativeSink;
if (j != 0) {
nativeDeleteSink(j);
this.nativeSink = 0L;
}
}
}