101 lines
2.3 KiB
Smali
101 lines
2.3 KiB
Smali
.class public Lcom/facebook/common/internal/CountingOutputStream;
|
|
.super Ljava/io/FilterOutputStream;
|
|
.source "CountingOutputStream.java"
|
|
|
|
|
|
# instance fields
|
|
.field private a:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/io/OutputStream;)V
|
|
.locals 2
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 41
|
|
iput-wide v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()J
|
|
.locals 2
|
|
|
|
.line 48
|
|
iget-wide v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 68
|
|
iget-object v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write(I)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 59
|
|
iget-object v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
|
|
|
|
.line 60
|
|
iget-wide v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
add-long v4, v0, v2
|
|
|
|
iput-wide v4, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([BII)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 53
|
|
iget-object v0, p0, Lcom/facebook/common/internal/CountingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
.line 54
|
|
iget-wide p1, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
int-to-long v0, p3
|
|
|
|
add-long v2, p1, v0
|
|
|
|
iput-wide v2, p0, Lcom/facebook/common/internal/CountingOutputStream;->a:J
|
|
|
|
return-void
|
|
.end method
|