org.stanwood.media.actions.podcast
Class VideoFeedFile

java.lang.Object
  extended by org.stanwood.media.actions.podcast.VideoFeedFile
All Implemented Interfaces:
java.lang.Comparable<IFeedFile>, IFeedFile

public class VideoFeedFile
extends java.lang.Object
implements IFeedFile

A vidoe base feed file


Constructor Summary
VideoFeedFile(java.io.File file, MediaDirConfig dirConfig, java.lang.String title, java.lang.String description, java.lang.String baseUrl, java.lang.String contentType)
          The constructor
 
Method Summary
 int compareTo(IFeedFile o)
          
 boolean equals(java.lang.Object obj)
          
 java.lang.String getContentType()
          Used to get the content type
 java.lang.String getDescription()
          Used to get the description of the file
 java.io.File getFile()
          Used to get the location of the file
 java.util.Date getLastModified()
          Used to get the date the file was last modified
 java.net.URL getLink()
          Used to get the URL of the file
 java.lang.String getTitle()
          Used to get the title of the file
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VideoFeedFile

public VideoFeedFile(java.io.File file,
                     MediaDirConfig dirConfig,
                     java.lang.String title,
                     java.lang.String description,
                     java.lang.String baseUrl,
                     java.lang.String contentType)
              throws java.net.MalformedURLException,
                     java.io.UnsupportedEncodingException
The constructor

Parameters:
file - The location of the file
dirConfig - The media directory configuration
title - The title of the file
description - The description of the file
baseUrl - The base URL of the feed
contentType - The content type of the file
Throws:
java.net.MalformedURLException - Thrown if their is a problem create URL's
java.io.UnsupportedEncodingException - Thrown if the URL can't be encoded
Method Detail

getContentType

public java.lang.String getContentType()
Used to get the content type

Specified by:
getContentType in interface IFeedFile
Returns:
the content Type

getFile

public java.io.File getFile()
Used to get the location of the file

Specified by:
getFile in interface IFeedFile
Returns:
the location of the file

getLastModified

public java.util.Date getLastModified()
Used to get the date the file was last modified

Specified by:
getLastModified in interface IFeedFile
Returns:
the date the file was last modified

getTitle

public java.lang.String getTitle()
Used to get the title of the file

Specified by:
getTitle in interface IFeedFile
Returns:
the title of the file

getLink

public java.net.URL getLink()
Used to get the URL of the file

Specified by:
getLink in interface IFeedFile
Returns:
the URL of the file

getDescription

public java.lang.String getDescription()
Used to get the description of the file

Specified by:
getDescription in interface IFeedFile
Returns:
the description of the file

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(IFeedFile o)

Specified by:
compareTo in interface java.lang.Comparable<IFeedFile>

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object