203 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			203 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lokhttp3/ResponseBody$BomAwareReader;
 | |
| .super Ljava/io/Reader;
 | |
| .source "ResponseBody.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lokhttp3/ResponseBody;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "BomAwareReader"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/SourceDebugExtension;
 | |
|     value = "SMAP\nResponseBody.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ResponseBody.kt\nokhttp3/ResponseBody$BomAwareReader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,321:1\n1#2:322\n*E\n"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0019\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0000\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0013\u001a\u00020\u0012\u0012\u0006\u0010\u0010\u001a\u00020\u000f\u00a2\u0006\u0004\u0008\u0014\u0010\u0015J \u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0004H\u0016J\u0008\u0010\t\u001a\u00020\u0008H\u0016R\u0016\u0010\u000b\u001a\u00020\n8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u000b\u0010\u000cR\u0018\u0010\r\u001a\u0004\u0018\u00010\u00018\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\r\u0010\u000eR\u0014\u0010\u0010\u001a\u00020\u000f8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0010\u0010\u0011\u00a8\u0006\u0016"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Lokhttp3/ResponseBody$BomAwareReader;",
 | |
|         "Ljava/io/Reader;",
 | |
|         "",
 | |
|         "cbuf",
 | |
|         "",
 | |
|         "off",
 | |
|         "len",
 | |
|         "read",
 | |
|         "Lkotlin/d1;",
 | |
|         "close",
 | |
|         "",
 | |
|         "closed",
 | |
|         "Z",
 | |
|         "delegate",
 | |
|         "Ljava/io/Reader;",
 | |
|         "Ljava/nio/charset/Charset;",
 | |
|         "charset",
 | |
|         "Ljava/nio/charset/Charset;",
 | |
|         "Lzj/o;",
 | |
|         "source",
 | |
|         "<init>",
 | |
|         "(Lzj/o;Ljava/nio/charset/Charset;)V",
 | |
|         "okhttp"
 | |
|     }
 | |
|     k = 0x1
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final charset:Ljava/nio/charset/Charset;
 | |
| 
 | |
| .field private closed:Z
 | |
| 
 | |
| .field private delegate:Ljava/io/Reader;
 | |
| 
 | |
| .field private final source:Lzj/o;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lzj/o;Ljava/nio/charset/Charset;)V
 | |
|     .locals 1
 | |
|     .param p1    # Lzj/o;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/nio/charset/Charset;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const-string v0, "source"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "charset"
 | |
| 
 | |
|     invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/io/Reader;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lzj/o;
 | |
| 
 | |
|     iput-object p2, p0, Lokhttp3/ResponseBody$BomAwareReader;->charset:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public close()V
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->closed:Z
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/io/Reader;->close()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lzj/o;
 | |
| 
 | |
|     invoke-interface {v0}, Lzj/m0;->close()V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public read([CII)I
 | |
|     .locals 4
 | |
|     .param p1    # [C
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "cbuf"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->closed:Z
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lzj/o;
 | |
| 
 | |
|     invoke-interface {v1}, Lzj/o;->F1()Ljava/io/InputStream;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v2, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lzj/o;
 | |
| 
 | |
|     iget-object v3, p0, Lokhttp3/ResponseBody$BomAwareReader;->charset:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     invoke-static {v2, v3}, Lokhttp3/internal/Util;->readBomAsCharset(Lzj/o;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {v0, v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     .line 6
 | |
|     iput-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
 | |
| 
 | |
|     .line 7
 | |
|     :goto_0
 | |
|     invoke-virtual {v0, p1, p2, p3}, Ljava/io/Reader;->read([CII)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/io/IOException;
 | |
| 
 | |
|     const-string p2, "Stream closed"
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 |