mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
package com.amazonaws.internal;
|
|
|
|
import com.amazonaws.AbortedException;
|
|
import com.amazonaws.logging.LogFactory;
|
|
import java.io.Closeable;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public abstract class SdkInputStream extends InputStream implements MetricAware {
|
|
public final void abortIfNeeded() {
|
|
if (Thread.interrupted()) {
|
|
try {
|
|
abort();
|
|
} catch (IOException e) {
|
|
LogFactory.getLog(getClass()).debug("FYI", e);
|
|
}
|
|
throw new AbortedException();
|
|
}
|
|
}
|
|
|
|
public abstract InputStream getWrappedInputStream();
|
|
|
|
@Override // com.amazonaws.internal.MetricAware
|
|
@Deprecated
|
|
public final boolean isMetricActivated() {
|
|
Closeable wrappedInputStream = getWrappedInputStream();
|
|
if (wrappedInputStream instanceof MetricAware) {
|
|
return ((MetricAware) wrappedInputStream).isMetricActivated();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public void abort() throws IOException {
|
|
}
|
|
}
|