mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
117 lines
3.2 KiB
Smali
117 lines
3.2 KiB
Smali
.class public final Lcom/google/common/hash/HashingOutputStream;
|
|
.super Ljava/io/FilterOutputStream;
|
|
.source "HashingOutputStream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final hasher:Lcom/google/common/hash/Hasher;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/common/hash/HashFunction;Ljava/io/OutputStream;)V
|
|
.locals 0
|
|
|
|
.line 46
|
|
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/io/OutputStream;
|
|
|
|
invoke-direct {p0, p2}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
|
|
.line 47
|
|
invoke-interface {p1}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/common/hash/Hasher;
|
|
|
|
iput-object p1, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 75
|
|
iget-object p0, p0, Lcom/google/common/hash/HashingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {p0}, Ljava/io/OutputStream;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public hash()Lcom/google/common/hash/HashCode;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
|
|
|
|
.line 67
|
|
invoke-interface {p0}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public write(I)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
|
|
|
|
int-to-byte v1, p1
|
|
|
|
.line 52
|
|
invoke-interface {v0, v1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
|
|
|
|
.line 53
|
|
iget-object p0, p0, Lcom/google/common/hash/HashingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([BII)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
|
|
|
|
.line 58
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
|
|
|
|
.line 59
|
|
iget-object p0, p0, Lcom/google/common/hash/HashingOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
return-void
|
|
.end method
|