.class final Lcom/google/common/io/ByteSource$AsCharSource; .super Lcom/google/common/io/CharSource; .source "ByteSource.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/io/ByteSource; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x12 name = "AsCharSource" .end annotation # instance fields .field private final charset:Ljava/nio/charset/Charset; .field final synthetic this$0:Lcom/google/common/io/ByteSource; # direct methods .method private constructor (Lcom/google/common/io/ByteSource;Ljava/nio/charset/Charset;)V .locals 1 .prologue .line 429 iput-object p1, p0, Lcom/google/common/io/ByteSource$AsCharSource;->this$0:Lcom/google/common/io/ByteSource; invoke-direct {p0}, Lcom/google/common/io/CharSource;->()V .line 430 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/nio/charset/Charset; iput-object v0, p0, Lcom/google/common/io/ByteSource$AsCharSource;->charset:Ljava/nio/charset/Charset; .line 431 return-void .end method .method synthetic constructor (Lcom/google/common/io/ByteSource;Ljava/nio/charset/Charset;Lcom/google/common/io/ByteSource$1;)V .locals 0 .prologue .line 425 invoke-direct {p0, p1, p2}, Lcom/google/common/io/ByteSource$AsCharSource;->(Lcom/google/common/io/ByteSource;Ljava/nio/charset/Charset;)V return-void .end method # virtual methods .method public openStream()Ljava/io/Reader; .locals 3 .prologue .line 435 new-instance v0, Ljava/io/InputStreamReader; iget-object v1, p0, Lcom/google/common/io/ByteSource$AsCharSource;->this$0:Lcom/google/common/io/ByteSource; invoke-virtual {v1}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream; move-result-object v1 iget-object v2, p0, Lcom/google/common/io/ByteSource$AsCharSource;->charset:Ljava/nio/charset/Charset; invoke-direct {v0, v1, v2}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V return-object v0 .end method .method public toString()Ljava/lang/String; .locals 2 .prologue .line 440 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Lcom/google/common/io/ByteSource$AsCharSource;->this$0:Lcom/google/common/io/ByteSource; invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ".asCharSource(" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/google/common/io/ByteSource$AsCharSource;->charset:Ljava/nio/charset/Charset; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ")" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method