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

81 lines
1.5 KiB
Smali

.class public final Lcom/coremedia/iso/Ascii;
.super Ljava/lang/Object;
.source "Ascii.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 convert([B)Ljava/lang/String;
.locals 2
if-eqz p0, :cond_0
.line 3
:try_start_0
new-instance v0, Ljava/lang/String;
const-string v1, "us-ascii"
invoke-direct {v0, p0, v1}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception p0
.line 4
new-instance v0, Ljava/lang/Error;
invoke-direct {v0, p0}, Ljava/lang/Error;-><init>(Ljava/lang/Throwable;)V
throw v0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public static convert(Ljava/lang/String;)[B
.locals 1
if-eqz p0, :cond_0
:try_start_0
const-string v0, "us-ascii"
.line 1
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
move-result-object p0
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
.line 2
new-instance v0, Ljava/lang/Error;
invoke-direct {v0, p0}, Ljava/lang/Error;-><init>(Ljava/lang/Throwable;)V
throw v0
:cond_0
const/4 p0, 0x0
return-object p0
.end method