com.eg.agent.android.instrumentation.io.StreamCompleteEvent Maven / Gradle / Ivy
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 paramObject, long paramLong)
{
this(paramObject, paramLong, null);
}
public StreamCompleteEvent(Object paramObject, long paramLong, Exception paramException)
{
super(paramObject);
this.bytes = paramLong;
this.exception = paramException;
}
public long getBytes()
{
return this.bytes;
}
public Exception getException()
{
return this.exception;
}
public boolean isError()
{
return this.exception != null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy