今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.1 KiB

.class public final Lcom/google/common/io/CountingOutputStream;
.super Ljava/io/FilterOutputStream;
.source "CountingOutputStream.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
# instance fields
.field private count:J
# direct methods
.method public constructor <init>(Ljava/io/OutputStream;)V
.locals 0
.param p1 # Ljava/io/OutputStream;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.prologue
.line 44
invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
.line 45
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.prologue
.line 66
iget-object v0, p0, Lcom/google/common/io/CountingOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
.line 67
return-void
.end method
.method public getCount()J
.locals 2
.prologue
.line 49
iget-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J
return-wide v0
.end method
.method public write(I)V
.locals 4
.prologue
.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
.line 59
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
.line 60
return-void
.end method
.method public write([BII)V
.locals 4
.prologue
.line 53
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
.line 54
iget-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J
int-to-long v2, p3
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/io/CountingOutputStream;->count:J
.line 55
return-void
.end method