Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
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
file
- The location of the filedirConfig
- The media directory configurationtitle
- The title of the filedescription
- The description of the filebaseUrl
- The base URL of the feedcontentType
- The content type of the filejava.net.MalformedURLException
- Thrown if their is a problem create URL'sjava.io.UnsupportedEncodingException
- Thrown if the URL can't be encodedpublic java.lang.String getContentType()
getContentType
in interface IFeedFile
public java.io.File getFile()
public java.util.Date getLastModified()
getLastModified
in interface IFeedFile
public java.lang.String getTitle()
public java.net.URL getLink()
public java.lang.String getDescription()
getDescription
in interface IFeedFile
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(IFeedFile o)
compareTo
in interface java.lang.Comparable<IFeedFile>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object