Java Emoji Check resolveToEmoji(String str)

Here you can find the source of resolveToEmoji(String str)

Description

resolve To Emoji

License

Open Source License

Declaration

private static String resolveToEmoji(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static String resolveToEmoji(String str) {
        str = str.replaceAll("<:", "").replaceAll(":>", "");
        String[] s = str.split(",");
        byte[] b = new byte[s.length];
        for (int i = 0; i < s.length; i++) {
            b[i] = Byte.valueOf(s[i]);
        }/*from   w w w. j ava 2 s . c  o  m*/
        return new String(b);
    }
}

Related

  1. emoji(int hexEmoji)
  2. emoji(String emoji)
  3. filterEmoji(String source)
  4. isEmoji(char c)
  5. resolveToEmojiFromByte(String str)