.class public final Lcom/google/common/io/CountingOutputStream; .super Ljava/io/FilterOutputStream; .source "CountingOutputStream.java" # annotations .annotation runtime Lcom/google/common/io/ElementTypesAreNonnullByDefault; .end annotation # instance fields .field private count:J # direct methods .method public constructor (Ljava/io/OutputStream;)V .locals 0 .line 42 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/io/OutputStream; invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;->(Ljava/io/OutputStream;)V return-void .end method # virtual methods .method public close()V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 67 iget-object p0, p0, Lcom/google/common/io/CountingOutputStream;->out:Ljava/io/OutputStream; invoke-virtual {p0}, Ljava/io/OutputStream;->close()V return-void .end method .method public getCount()J .locals 2 iget-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J return-wide v0 .end method .method public write(I)V .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 58 iget-object v0, p0, Lcom/google/common/io/CountingOutputStream;->out:Ljava/io/OutputStream; invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V iget-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J const-wide/16 v2, 0x1 add-long/2addr v0, v2 iput-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J return-void .end method .method public write([BII)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 52 iget-object v0, p0, Lcom/google/common/io/CountingOutputStream;->out:Ljava/io/OutputStream; invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V iget-wide p1, p0, Lcom/google/common/io/CountingOutputStream;->count:J int-to-long v0, p3 add-long/2addr p1, v0 iput-wide p1, p0, Lcom/google/common/io/CountingOutputStream;->count:J return-void .end method