# Print output for @column tags ?> AbstractMessageParser.Photo - Android SDK | Android Developers

Most visited

Recently visited

AbstractMessageParser.Photo

public static class AbstractMessageParser.Photo
extends AbstractMessageParser.Token

java.lang.Object
   ↳ com.google.android.util.AbstractMessageParser.Token
     ↳ com.google.android.util.AbstractMessageParser.Photo


Represents a link to a Picasa photo or album.

Summary

Inherited fields

Public constructors

Photo(String user, String album, String photo, String text)

Public methods

String getAlbum()
static String getAlbumURL(String user, String album)

Returns the URL for an album.

List<String> getInfo()

Get the relevant information about a token

String getPhoto()
static String getPhotoURL(String user, String album, String photo)

Returns the URL for a particular photo.

static String getRssUrl(String user)

Returns the URL for the RSS description of the user's albums.

String getUser()
boolean isHtml()
boolean isMedia()
static AbstractMessageParser.Photo matchURL(String url, String text)

Returns a Photo object if the given url is to a photo or album.

Inherited methods

Public constructors

Photo

public Photo (String user, 
                String album, 
                String photo, 
                String text)

Parameters
user String

album String

photo String

text String

Public methods

getAlbum

public String getAlbum ()

Returns
String

getAlbumURL

public static String getAlbumURL (String user, 
                String album)

Returns the URL for an album.

Parameters
user String

album String

Returns
String

getInfo

public List<String> getInfo ()

Get the relevant information about a token

Returns
List<String> a list of strings representing the token, not null The first item is always a string representation of the type

getPhoto

public String getPhoto ()

Returns
String

getPhotoURL

public static String getPhotoURL (String user, 
                String album, 
                String photo)

Returns the URL for a particular photo.

Parameters
user String

album String

photo String

Returns
String

getRssUrl

public static String getRssUrl (String user)

Returns the URL for the RSS description of the user's albums.

Parameters
user String

Returns
String

getUser

public String getUser ()

Returns
String

isHtml

public boolean isHtml ()

Returns
boolean

isMedia

public boolean isMedia ()

Returns
boolean

matchURL

public static AbstractMessageParser.Photo matchURL (String url, 
                String text)

Returns a Photo object if the given url is to a photo or album.

Parameters
url String

text String

Returns
AbstractMessageParser.Photo