|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.AbstractDBEntry
com.antelmann.net.web.YouTubeVideo
@Todo(value="needs work after V2 has been deprecated") public class YouTubeVideo
wraps a YouTube video ID and provides access to online meta data for the video
JYouTubeField,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.antelmann.db.DBEntry |
|---|
ENTRY_FLAVOR, ENTRY_LIST_FLAVOR |
| Constructor Summary | |
|---|---|
YouTubeVideo(String id)
|
|
| Method Summary | |
|---|---|
void |
clean()
|
void |
ensureLoaded()
|
static String |
extractID(String urlString)
attempts to extract the video id from the given URL |
String |
getAuthor()
|
String |
getDescription()
|
Image |
getDisplayIcon()
returns an image that is suitable for use as an icon for this instance. |
Image |
getDisplayImage()
returns an image that represents a visual representation of this instance. |
long |
getDuration()
|
GeoPoint |
getGeoPoint()
|
Map<String,URL> |
getImageMap()
|
Image |
getLargestImage()
|
Date |
getModifiedDate()
|
Date |
getPublishDate()
|
double |
getRating()
|
String |
getTitle()
|
Date |
getUploadDate()
|
long |
getViewCount()
|
XmlHelper |
getXmlInfo()
|
boolean |
isLoaded()
|
boolean |
isValid()
|
void |
loadContent()
|
void |
loadContentFrom(InputSource source)
|
void |
openBrowser(boolean fullScreen)
|
String |
toDetailedString()
provides full details of this instance in a String. |
| Methods inherited from class com.antelmann.db.AbstractDBEntry |
|---|
equals, getID, hashCode, hashEntry, sameEntry, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public YouTubeVideo(String id)
| Method Detail |
|---|
public void openBrowser(boolean fullScreen)
throws IOException
IOExceptionpublic void clean()
public boolean isLoaded()
public void loadContent()
throws IOException,
SAXException,
ParserConfigurationException,
UnexpectedDataException
IOException
SAXException
ParserConfigurationException
UnexpectedDataException
public void loadContentFrom(InputSource source)
throws SAXException,
IOException,
ParserConfigurationException
SAXException
IOException
ParserConfigurationException
public void ensureLoaded()
throws RuntimeException
RuntimeExceptionpublic XmlHelper getXmlInfo()
public String toDetailedString()
DetailedString
toDetailedString in interface DetailedStringpublic boolean isValid()
public String getTitle()
public Date getPublishDate()
public Date getModifiedDate()
public String getAuthor()
public double getRating()
public long getViewCount()
public String getDescription()
public Date getUploadDate()
public long getDuration()
public GeoPoint getGeoPoint()
throws FormatException
FormatException
public Image getDisplayImage()
throws IOException
Imageable
getDisplayImage in interface ImageableIOException
public Image getDisplayIcon()
throws IOException
Imageable
getDisplayIcon in interface ImageableIOException
public Map<String,URL> getImageMap()
throws IOException
IOException
public Image getLargestImage()
throws IOException
IOExceptionpublic static String extractID(String urlString)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||