.class public final Lge/a; .super Lce/e; .source "IcyDecoder.java" # static fields .field public static final c:Ljava/util/regex/Pattern; .field public static final d:Ljava/lang/String; = "streamtitle" .field public static final e:Ljava/lang/String; = "streamurl" # instance fields .field public final a:Ljava/nio/charset/CharsetDecoder; .field public final b:Ljava/nio/charset/CharsetDecoder; # direct methods .method public static constructor ()V .locals 2 const-string v0, "(.+?)=\'(.*?)\';" const/16 v1, 0x20 .line 1 invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern; move-result-object v0 sput-object v0, Lge/a;->c:Ljava/util/regex/Pattern; return-void .end method .method public constructor ()V .locals 1 .line 1 invoke-direct {p0}, Lce/e;->()V .line 2 sget-object v0, Lcom/google/common/base/Charsets;->UTF_8:Ljava/nio/charset/Charset; invoke-virtual {v0}, Ljava/nio/charset/Charset;->newDecoder()Ljava/nio/charset/CharsetDecoder; move-result-object v0 iput-object v0, p0, Lge/a;->a:Ljava/nio/charset/CharsetDecoder; .line 3 sget-object v0, Lcom/google/common/base/Charsets;->ISO_8859_1:Ljava/nio/charset/Charset; invoke-virtual {v0}, Ljava/nio/charset/Charset;->newDecoder()Ljava/nio/charset/CharsetDecoder; move-result-object v0 iput-object v0, p0, Lge/a;->b:Ljava/nio/charset/CharsetDecoder; return-void .end method # virtual methods .method public b(Lce/c;Ljava/nio/ByteBuffer;)Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata; .locals 7 .line 1 invoke-virtual {p0, p2}, Lge/a;->c(Ljava/nio/ByteBuffer;)Ljava/lang/String; move-result-object p1 .line 2 invoke-virtual {p2}, Ljava/nio/ByteBuffer;->limit()I move-result v0 new-array v0, v0, [B .line 3 invoke-virtual {p2, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer; const/4 p2, 0x1 const/4 v1, 0x0 const/4 v2, 0x0 if-nez p1, :cond_0 .line 4 new-instance p1, Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata; new-array p2, p2, [Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata$Entry; new-instance v3, Lcom/tmapmobility/tmap/exoplayer2/metadata/icy/IcyInfo; invoke-direct {v3, v0, v2, v2}, Lcom/tmapmobility/tmap/exoplayer2/metadata/icy/IcyInfo;->([BLjava/lang/String;Ljava/lang/String;)V aput-object v3, p2, v1 invoke-direct {p1, p2}, Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata;->([Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata$Entry;)V return-object p1 .line 5 :cond_0 sget-object v3, Lge/a;->c:Ljava/util/regex/Pattern; invoke-virtual {v3, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p1 move v4, v1 move-object v3, v2 .line 6 :goto_0 invoke-virtual {p1, v4}, Ljava/util/regex/Matcher;->find(I)Z move-result v4 if-eqz v4, :cond_4 .line 7 invoke-virtual {p1, p2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String; move-result-object v4 const/4 v5, 0x2 .line 8 invoke-virtual {p1, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String; move-result-object v5 if-eqz v4, :cond_3 .line 9 invoke-static {v4}, Lcom/google/common/base/Ascii;->toLowerCase(Ljava/lang/String;)Ljava/lang/String; move-result-object v4 invoke-static {v4}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; const-string v6, "streamurl" invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v6 if-nez v6, :cond_2 const-string v6, "streamtitle" invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-nez v4, :cond_1 goto :goto_1 :cond_1 move-object v2, v5 goto :goto_1 :cond_2 move-object v3, v5 .line 10 :cond_3 :goto_1 invoke-virtual {p1}, Ljava/util/regex/Matcher;->end()I move-result v4 goto :goto_0 .line 11 :cond_4 new-instance p1, Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata; new-array p2, p2, [Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata$Entry; new-instance v4, Lcom/tmapmobility/tmap/exoplayer2/metadata/icy/IcyInfo; invoke-direct {v4, v0, v2, v3}, Lcom/tmapmobility/tmap/exoplayer2/metadata/icy/IcyInfo;->([BLjava/lang/String;Ljava/lang/String;)V aput-object v4, p2, v1 invoke-direct {p1, p2}, Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata;->([Lcom/tmapmobility/tmap/exoplayer2/metadata/Metadata$Entry;)V return-object p1 .end method .method public final c(Ljava/nio/ByteBuffer;)Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 :try_start_0 iget-object v0, p0, Lge/a;->a:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v0, p1}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer; move-result-object v0 invoke-virtual {v0}, Ljava/nio/CharBuffer;->toString()Ljava/lang/String; move-result-object v0 :try_end_0 .catch Ljava/nio/charset/CharacterCodingException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 2 iget-object v1, p0, Lge/a;->a:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 3 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; return-object v0 :catchall_0 move-exception v0 .line 4 iget-object v1, p0, Lge/a;->a:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 5 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; .line 6 throw v0 .line 7 :catch_0 iget-object v0, p0, Lge/a;->a:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v0}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 8 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; .line 9 :try_start_1 iget-object v0, p0, Lge/a;->b:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v0, p1}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer; move-result-object v0 invoke-virtual {v0}, Ljava/nio/CharBuffer;->toString()Ljava/lang/String; move-result-object v0 :try_end_1 .catch Ljava/nio/charset/CharacterCodingException; {:try_start_1 .. :try_end_1} :catch_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 .line 10 iget-object v1, p0, Lge/a;->b:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 11 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; return-object v0 :catchall_1 move-exception v0 .line 12 iget-object v1, p0, Lge/a;->b:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 13 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; .line 14 throw v0 :catch_1 const/4 v0, 0x0 .line 15 iget-object v1, p0, Lge/a;->b:Ljava/nio/charset/CharsetDecoder; invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder; .line 16 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer; return-object v0 .end method