com.eg.agent.android.instrumentation.io.StreamCompleteEvent Maven / Gradle / Ivy
The newest version!
/*
* Decompiled with CFR 0.137.
*/
package com.eg.agent.android.instrumentation.io;
import java.util.EventObject;
public final class StreamCompleteEvent
extends EventObject {
private static final long serialVersionUID = 1L;
private final long bytes;
private final Exception exception;
public StreamCompleteEvent(Object source, long bytes, Exception exception) {
super(source);
this.bytes = bytes;
this.exception = exception;
}
public StreamCompleteEvent(Object source, long bytes) {
this(source, bytes, null);
}
public long getBytes() {
return this.bytes;
}
public Exception getException() {
return this.exception;
}
public boolean isError() {
return this.exception != null;
}
}