Class Video
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FileEntry
org.deltava.beans.fleet.Video
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<LibraryEntry>,Auditable,AuthoredBean,ViewEntry,Cacheable
- Direct Known Subclasses:
TrainingVideo
A bean to store video data.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the video type.static booleanisValidFormat(String fName) Returns whether this video is in a supported format.voidUpdates the video type.Methods inherited from class org.deltava.beans.fleet.FileEntry
getAuthorID, getCategory, setAuthorID, setCategoryMethods inherited from class org.deltava.beans.fleet.LibraryEntry
cacheKey, compareTo, file, getAuditID, getDescription, getDownloadCount, getFileName, getFullName, getName, getOwner, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setOwner, setSecurity, setSize, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
-
Constructor Details
-
Video
Creates a new video bean.- Parameters:
f- the File- Throws:
NullPointerException- if fName is nullIllegalArgumentException- if fName has an unknown extension
-
-
Method Details
-
getType
-
setType
Updates the video type.- Parameters:
fName- the file name- Throws:
IllegalArgumentException- if fName has an unknown extension
-
isValidFormat
Returns whether this video is in a supported format.- Parameters:
fName- the video file name- Returns:
- TRUE if supported, otherwise FALSE
-