.class public abstract Lcom/facebook/datasource/BaseDataSubscriber; .super Ljava/lang/Object; .source "BaseDataSubscriber.java" # interfaces .implements Lcom/facebook/datasource/DataSubscriber; # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Lcom/facebook/datasource/DataSubscriber", ";" } .end annotation # direct methods .method public constructor ()V .locals 0 .prologue .local p0, "this":Lcom/facebook/datasource/BaseDataSubscriber;, "Lcom/facebook/datasource/BaseDataSubscriber;" invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onCancellation(Lcom/facebook/datasource/DataSource;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .prologue .local p0, "this":Lcom/facebook/datasource/BaseDataSubscriber;, "Lcom/facebook/datasource/BaseDataSubscriber;" .local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource;" return-void .end method .method public onFailure(Lcom/facebook/datasource/DataSource;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .prologue .local p0, "this":Lcom/facebook/datasource/BaseDataSubscriber;, "Lcom/facebook/datasource/BaseDataSubscriber;" .local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource;" :try_start_0 invoke-virtual {p0, p1}, Lcom/facebook/datasource/BaseDataSubscriber;->onFailureImpl(Lcom/facebook/datasource/DataSource;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z return-void :catchall_0 move-exception v0 invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z throw v0 .end method .method protected abstract onFailureImpl(Lcom/facebook/datasource/DataSource;)V .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .end method .method public onNewResult(Lcom/facebook/datasource/DataSource;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .prologue .local p0, "this":Lcom/facebook/datasource/BaseDataSubscriber;, "Lcom/facebook/datasource/BaseDataSubscriber;" .local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource;" invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->isFinished()Z move-result v0 .local v0, "shouldClose":Z :try_start_0 invoke-virtual {p0, p1}, Lcom/facebook/datasource/BaseDataSubscriber;->onNewResultImpl(Lcom/facebook/datasource/DataSource;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v0, :cond_0 invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z :cond_0 return-void :catchall_0 move-exception v1 if-eqz v0, :cond_1 invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z :cond_1 throw v1 .end method .method protected abstract onNewResultImpl(Lcom/facebook/datasource/DataSource;)V .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .end method .method public onProgressUpdate(Lcom/facebook/datasource/DataSource;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/datasource/DataSource", ";)V" } .end annotation .prologue .local p0, "this":Lcom/facebook/datasource/BaseDataSubscriber;, "Lcom/facebook/datasource/BaseDataSubscriber;" .local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource;" return-void .end method