2022-06-10 21:38:30 +09:00

73 lines
1.5 KiB
Smali

.class public Lqg/c;
.super Ljava/lang/Object;
.source "CharsetUtils.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Ljava/lang/String;)Ljava/nio/charset/Charset;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/UnsupportedEncodingException;
}
.end annotation
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
.line 1
:cond_0
:try_start_0
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
:try_end_0
.catch Ljava/nio/charset/UnsupportedCharsetException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
.line 2
:catch_0
new-instance v0, Ljava/io/UnsupportedEncodingException;
invoke-direct {v0, p0}, Ljava/io/UnsupportedEncodingException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static b(Ljava/lang/String;)Ljava/nio/charset/Charset;
.locals 1
const/4 v0, 0x0
if-nez p0, :cond_0
return-object v0
.line 1
:cond_0
:try_start_0
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
:try_end_0
.catch Ljava/nio/charset/UnsupportedCharsetException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
return-object v0
.end method