StringUtils.smali
.class public Lorg/apache/commons/codec/binary/StringUtils;
.super Ljava/lang/Object;
# direct methods
.method private static a(Ljava/lang/String;Ljava/nio/charset/Charset;)[B
.registers 2
if-nez p0, :cond_4
const/4 p0, 0x0
return-object p0
:cond_4
invoke-virtual {p0, p1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p0
return-object p0
.end method
.method private static b([BLjava/nio/charset/Charset;)Ljava/lang/String;
.registers 3
if-nez p0, :cond_4
const/4 p0, 0x0
goto :goto_a
:cond_4
new-instance v0, Ljava/lang/String;
invoke-direct {v0, p0, p1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
move-object p0, v0
:goto_a
return-object p0
.end method
.method public static getBytesUtf8(Ljava/lang/String;)[B
.registers 2
sget-object v0, Lorg/apache/commons/codec/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {p0, v0}, Lorg/apache/commons/codec/binary/StringUtils;->a(Ljava/lang/String;Ljava/nio/charset/Charset;)[B
move-result-object p0
return-object p0
.end method
.method public static newStringUtf8([B)Ljava/lang/String;
.registers 2
sget-object v0, Lorg/apache/commons/codec/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {p0, v0}, Lorg/apache/commons/codec/binary/StringUtils;->b([BLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method