ezvcard.types
Class ImppType.ImHtmlLink
java.lang.Object
ezvcard.types.ImppType.ImHtmlLink
- Enclosing class:
- ImppType
protected static class ImppType.ImHtmlLink
- extends Object
Helper class for parsing and building instant messenger links for
webpages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImppType.ImHtmlLink
public ImppType.ImHtmlLink(String protocol)
- Parameters:
protocol
- the IM protocol (e.g. "aim")
ImppType.ImHtmlLink
public ImppType.ImHtmlLink(String protocol,
String linkRegex,
int handleGroup,
String linkFormat)
- Parameters:
protocol
- the IM protocol (e.g. "aim")linkRegex
- the regular expression used to parse a linkhandleGroup
- the group number from the regular expression that
contains the IM handlelinkFormat
- the format string for building a link
parseHandle
public String parseHandle(String linkUri)
- Parses the IM handle out of a link.
- Parameters:
linkUri
- the link
- Returns:
- the IM handle or null if it can't be found
buildLink
public String buildLink(String handle)
- Builds a link for inclusion in a webpage.
- Parameters:
handle
- the IM handle
- Returns:
- the link
getProtocol
public String getProtocol()
Copyright © 2012-2013. All Rights Reserved.