# Print output for @column tags ?> SmileyResources - Android SDK | Android Developers

Most visited


Recently visited


SmileyResources

public class SmileyResources
extends Object implements AbstractMessageParser.Resources

java.lang.Object
   ↳ com.google.android.util.SmileyResources


Resources for smiley parser.

Summary


Public constructors

SmileyResources(String[] smilies, int[] smileyResIds)

Public methods

AbstractMessageParser.TrieNode getAcronyms()

Get the acronyms accepted by the parser.

AbstractMessageParser.TrieNode getDomainSuffixes()

Get the possible values for the last part of a domain name.

Set<String> getSchemes()

Get the known set of URL schemes.

int getSmileyRes(String smiley)

Looks up the resource id of a given smiley.

AbstractMessageParser.TrieNode getSmileys()

Get the smileys accepted by the parser.

Inherited methods

Public constructors


SmileyResources

public SmileyResources (String[] smilies, 
                int[] smileyResIds)

Parameters
smilies String: Smiley text, e.g. ":)", "8-)"

smileyResIds int: Resource IDs associated with the smileys.

Public methods


getAcronyms

public AbstractMessageParser.TrieNode getAcronyms ()

Get the acronyms accepted by the parser.

Returns
AbstractMessageParser.TrieNode

getDomainSuffixes

public AbstractMessageParser.TrieNode getDomainSuffixes ()

Get the possible values for the last part of a domain name. Values are expected to be reversed in the Trie.

Returns
AbstractMessageParser.TrieNode

getSchemes

public Set<String> getSchemes ()

Get the known set of URL schemes.

Returns
Set<String>

getSmileyRes

public int getSmileyRes (String smiley)

Looks up the resource id of a given smiley.

Parameters
smiley String: The smiley to look up.

Returns
int the resource id of the specified smiley, or -1 if no resource id is associated with it.

getSmileys

public AbstractMessageParser.TrieNode getSmileys ()

Get the smileys accepted by the parser.

Returns
AbstractMessageParser.TrieNode

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.