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.
88 lines
1.9 KiB
88 lines
1.9 KiB
2 years ago
|
.class final Lcom/google/common/io/CharStreams$2;
|
||
|
.super Ljava/io/Reader;
|
||
|
.source "CharStreams.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/google/common/io/CharStreams;->asReader(Ljava/lang/Readable;)Ljava/io/Reader;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic val$readable:Ljava/lang/Readable;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Ljava/lang/Readable;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 516
|
||
|
iput-object p1, p0, Lcom/google/common/io/CharStreams$2;->val$readable:Ljava/lang/Readable;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/io/Reader;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public close()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 529
|
||
|
iget-object v0, p0, Lcom/google/common/io/CharStreams$2;->val$readable:Ljava/lang/Readable;
|
||
|
|
||
|
instance-of v0, v0, Ljava/io/Closeable;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 530
|
||
|
iget-object v0, p0, Lcom/google/common/io/CharStreams$2;->val$readable:Ljava/lang/Readable;
|
||
|
|
||
|
check-cast v0, Ljava/io/Closeable;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/io/Closeable;->close()V
|
||
|
|
||
|
.line 532
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public read(Ljava/nio/CharBuffer;)I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 524
|
||
|
iget-object v0, p0, Lcom/google/common/io/CharStreams$2;->val$readable:Ljava/lang/Readable;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/lang/Readable;->read(Ljava/nio/CharBuffer;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public read([CII)I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 519
|
||
|
invoke-static {p1, p2, p3}, Ljava/nio/CharBuffer;->wrap([CII)Ljava/nio/CharBuffer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lcom/google/common/io/CharStreams$2;->read(Ljava/nio/CharBuffer;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|