737 lines
17 KiB
Smali
737 lines
17 KiB
Smali
.class public final Lkotlin/io/m;
|
|
.super Ljava/lang/Object;
|
|
.source "Console.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nConsole.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Console.kt\nkotlin/io/LineReader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,277:1\n1#2:278\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000d\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0010\u0019\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0008\u00c0\u0002\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008-\u0010.J\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004J\u0010\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\u0008H\u0002J\u0008\u0010\u000c\u001a\u00020\nH\u0002J\u0018\u0010\u000f\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\n2\u0006\u0010\u000e\u001a\u00020\nH\u0002J\u0010\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u0008\u0010\u0012\u001a\u00020\u0010H\u0002J\u0008\u0010\u0013\u001a\u00020\u0010H\u0002R\u0014\u0010\u0016\u001a\u00020\n8\u0002X\u0082T\u00a2\u0006\u0006\n\u0004\u0008\u0014\u0010\u0015R\u0016\u0010\u001a\u001a\u00020\u00178\u0002@\u0002X\u0082.\u00a2\u0006\u0006\n\u0004\u0008\u0018\u0010\u0019R\u0016\u0010\u001c\u001a\u00020\u00088\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u000c\u0010\u001bR\u0014\u0010\u001f\u001a\u00020\u001d8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u000b\u0010\u001eR\u0014\u0010\"\u001a\u00020 8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u000f\u0010!R\u0014\u0010%\u001a\u00020#8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0007\u0010$R\u0014\u0010(\u001a\u00020&8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0012\u0010\'R\u0018\u0010,\u001a\u00060)j\u0002`*8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0013\u0010+\u00a8\u0006/"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/io/m;",
|
|
"",
|
|
"Ljava/io/InputStream;",
|
|
"inputStream",
|
|
"Ljava/nio/charset/Charset;",
|
|
"charset",
|
|
"",
|
|
"f",
|
|
"",
|
|
"endOfInput",
|
|
"",
|
|
"d",
|
|
"c",
|
|
"nBytes",
|
|
"nChars",
|
|
"e",
|
|
"Lkotlin/d1;",
|
|
"i",
|
|
"g",
|
|
"h",
|
|
"a",
|
|
"I",
|
|
"BUFFER_SIZE",
|
|
"Ljava/nio/charset/CharsetDecoder;",
|
|
"b",
|
|
"Ljava/nio/charset/CharsetDecoder;",
|
|
"decoder",
|
|
"Z",
|
|
"directEOL",
|
|
"",
|
|
"[B",
|
|
"bytes",
|
|
"",
|
|
"[C",
|
|
"chars",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"byteBuf",
|
|
"Ljava/nio/CharBuffer;",
|
|
"Ljava/nio/CharBuffer;",
|
|
"charBuf",
|
|
"Ljava/lang/StringBuilder;",
|
|
"Lkotlin/text/StringBuilder;",
|
|
"Ljava/lang/StringBuilder;",
|
|
"sb",
|
|
"<init>",
|
|
"()V",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x5,
|
|
0x1
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:I = 0x20
|
|
|
|
.field public static b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
.field public static c:Z
|
|
|
|
.field public static final d:[B
|
|
|
|
.field public static final e:[C
|
|
|
|
.field public static final f:Ljava/nio/ByteBuffer;
|
|
|
|
.field public static final g:Ljava/nio/CharBuffer;
|
|
|
|
.field public static final h:Ljava/lang/StringBuilder;
|
|
|
|
.field public static final i:Lkotlin/io/m;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/io/m;
|
|
|
|
invoke-direct {v0}, Lkotlin/io/m;-><init>()V
|
|
|
|
sput-object v0, Lkotlin/io/m;->i:Lkotlin/io/m;
|
|
|
|
const/16 v0, 0x20
|
|
|
|
new-array v1, v0, [B
|
|
|
|
.line 2
|
|
sput-object v1, Lkotlin/io/m;->d:[B
|
|
|
|
new-array v0, v0, [C
|
|
|
|
.line 3
|
|
sput-object v0, Lkotlin/io/m;->e:[C
|
|
|
|
.line 4
|
|
invoke-static {v1}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "ByteBuffer.wrap(bytes)"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object v1, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
.line 5
|
|
invoke-static {v0}, Ljava/nio/CharBuffer;->wrap([C)Ljava/nio/CharBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "CharBuffer.wrap(chars)"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lkotlin/io/m;->g:Ljava/nio/CharBuffer;
|
|
|
|
.line 6
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
sput-object v0, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lkotlin/io/m;)Ljava/nio/charset/CharsetDecoder;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object p0, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-string v0, "decoder"
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic b(Lkotlin/io/m;Ljava/nio/charset/CharsetDecoder;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
sput-object p1, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final c()I
|
|
.locals 3
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->compact()Ljava/nio/ByteBuffer;
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public final d(Z)I
|
|
.locals 5
|
|
|
|
.line 1
|
|
:goto_0
|
|
sget-object v0, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v1, "decoder"
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
sget-object v1, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
sget-object v2, Lkotlin/io/m;->g:Ljava/nio/CharBuffer;
|
|
|
|
invoke-virtual {v0, v1, v2, p1}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "decoder.decode(byteBuf, charBuf, endOfInput)"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/nio/charset/CoderResult;->isError()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lkotlin/io/m;->g()V
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Ljava/nio/charset/CoderResult;->throwException()V
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {v2}, Ljava/nio/CharBuffer;->position()I
|
|
|
|
move-result v1
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Ljava/nio/charset/CoderResult;->isOverflow()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_2
|
|
sget-object v0, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
sget-object v3, Lkotlin/io/m;->e:[C
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v0, v3, v4, v1}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 8
|
|
invoke-virtual {v2, v4}, Ljava/nio/CharBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
const/16 v0, 0x20
|
|
|
|
.line 9
|
|
invoke-virtual {v2, v0}, Ljava/nio/CharBuffer;->limit(I)Ljava/nio/Buffer;
|
|
|
|
.line 10
|
|
aget-char v0, v3, v1
|
|
|
|
invoke-virtual {v2, v0}, Ljava/nio/CharBuffer;->put(C)Ljava/nio/CharBuffer;
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public final e(II)I
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
|
|
|
|
.line 2
|
|
sget-object p1, Lkotlin/io/m;->g:Ljava/nio/CharBuffer;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/nio/CharBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lkotlin/io/m;->d(Z)I
|
|
|
|
move-result p1
|
|
|
|
.line 4
|
|
sget-object p2, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const-string v1, "decoder"
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final declared-synchronized f(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 9
|
|
.param p1 # Ljava/io/InputStream;
|
|
.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
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
const-string v0, "inputStream"
|
|
|
|
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
|
|
sget-object v0, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v2, "decoder"
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/nio/charset/CharsetDecoder;->charset()Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p2}, Lkotlin/jvm/internal/f0;->g(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p2}, Lkotlin/io/m;->i(Ljava/nio/charset/Charset;)V
|
|
|
|
:cond_2
|
|
const/4 p2, 0x0
|
|
|
|
move v0, p2
|
|
|
|
move v2, v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x20
|
|
|
|
const/16 v5, 0xa
|
|
|
|
const/4 v6, -0x1
|
|
|
|
if-ne v3, v6, :cond_5
|
|
|
|
.line 3
|
|
sget-object p1, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
move p1, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move p1, p2
|
|
|
|
:goto_1
|
|
if-eqz p1, :cond_4
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 5
|
|
:cond_4
|
|
:try_start_1
|
|
invoke-virtual {p0, v0, v2}, Lkotlin/io/m;->e(II)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_3
|
|
|
|
.line 6
|
|
:cond_5
|
|
sget-object v6, Lkotlin/io/m;->d:[B
|
|
|
|
add-int/lit8 v7, v0, 0x1
|
|
|
|
int-to-byte v8, v3
|
|
|
|
aput-byte v8, v6, v0
|
|
|
|
if-eq v3, v5, :cond_7
|
|
|
|
if-eq v7, v4, :cond_7
|
|
|
|
.line 7
|
|
sget-boolean v0, Lkotlin/io/m;->c:Z
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
move v0, v7
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_7
|
|
:goto_2
|
|
sget-object v0, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {v0, v7}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
|
|
|
|
.line 9
|
|
sget-object v3, Lkotlin/io/m;->g:Ljava/nio/CharBuffer;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/nio/CharBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p2}, Lkotlin/io/m;->d(Z)I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_c
|
|
|
|
.line 11
|
|
sget-object v3, Lkotlin/io/m;->e:[C
|
|
|
|
add-int/lit8 v6, v2, -0x1
|
|
|
|
aget-char v3, v3, v6
|
|
|
|
if-ne v3, v5, :cond_c
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
move p1, v2
|
|
|
|
:goto_3
|
|
if-lez p1, :cond_8
|
|
|
|
.line 13
|
|
sget-object v0, Lkotlin/io/m;->e:[C
|
|
|
|
add-int/lit8 v2, p1, -0x1
|
|
|
|
aget-char v2, v0, v2
|
|
|
|
if-ne v2, v5, :cond_8
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
if-lez p1, :cond_8
|
|
|
|
add-int/lit8 v2, p1, -0x1
|
|
|
|
.line 14
|
|
aget-char v0, v0, v2
|
|
|
|
const/16 v2, 0xd
|
|
|
|
if-ne v0, v2, :cond_8
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
.line 15
|
|
:cond_8
|
|
sget-object v0, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
move v1, p2
|
|
|
|
:goto_4
|
|
if-eqz v1, :cond_a
|
|
|
|
sget-object v0, Lkotlin/io/m;->e:[C
|
|
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v0, p2, p1}, Ljava/lang/String;-><init>([CII)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object v1
|
|
|
|
.line 16
|
|
:cond_a
|
|
:try_start_2
|
|
sget-object v1, Lkotlin/io/m;->e:[C
|
|
|
|
invoke-virtual {v0, v1, p2, p1}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 17
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "sb.toString()"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-le v1, v4, :cond_b
|
|
|
|
invoke-virtual {p0}, Lkotlin/io/m;->h()V
|
|
|
|
.line 19
|
|
:cond_b
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->setLength(I)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 20
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 21
|
|
:cond_c
|
|
:try_start_3
|
|
invoke-virtual {p0}, Lkotlin/io/m;->c()I
|
|
|
|
move-result v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final g()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v1, "decoder"
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;
|
|
|
|
.line 2
|
|
sget-object v0, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
.line 3
|
|
sget-object v0, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->setLength(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final h()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlin/io/m;->h:Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x20
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->setLength(I)V
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->trimToSize()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final i(Ljava/nio/charset/Charset;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/nio/charset/Charset;->newDecoder()Ljava/nio/charset/CharsetDecoder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "charset.newDecoder()"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object p1, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
.line 2
|
|
sget-object p1, Lkotlin/io/m;->f:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
.line 3
|
|
sget-object v0, Lkotlin/io/m;->g:Ljava/nio/CharBuffer;
|
|
|
|
invoke-virtual {v0}, Ljava/nio/CharBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
int-to-byte v2, v1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->put(B)Ljava/nio/ByteBuffer;
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
|
|
|
|
.line 6
|
|
sget-object v2, Lkotlin/io/m;->b:Ljava/nio/charset/CharsetDecoder;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const-string v3, "decoder"
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/f0;->S(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v2, p1, v0, v3}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
|
|
|
|
.line 7
|
|
invoke-virtual {v0}, Ljava/nio/CharBuffer;->position()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne p1, v2, :cond_1
|
|
|
|
invoke-virtual {v0, v3}, Ljava/nio/CharBuffer;->get(I)C
|
|
|
|
move-result p1
|
|
|
|
if-ne p1, v1, :cond_1
|
|
|
|
move v3, v2
|
|
|
|
:cond_1
|
|
sput-boolean v3, Lkotlin/io/m;->c:Z
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Lkotlin/io/m;->g()V
|
|
|
|
return-void
|
|
.end method
|