org.stanwood.media.model
Class VideoFile

java.lang.Object
  extended by org.stanwood.media.model.VideoFile
All Implemented Interfaces:
IVideoFile

public class VideoFile
extends java.lang.Object
implements IVideoFile

This is used to store information about files in a media directory


Constructor Summary
VideoFile(java.io.File filename, java.io.File originalLocation, java.lang.Integer part, java.io.File rootMediaDir)
          The constructor
 
Method Summary
 java.io.File getLocation()
          Used to get the current location of the video file
 java.io.File getMediaDirectory()
          Returns the media directory the file is in
 java.io.File getOrginalLocation()
          Used to get the original location of the video file.
 java.lang.Integer getPart()
          Used to get the part number of the file
 void setLocation(java.io.File location)
          Used to set the current location of the video file
 void setOrginalLocation(java.io.File orginalLocation)
          Used to set the original location of the video file.
 void setPart(java.lang.Integer part)
          Used to set the part number of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoFile

public VideoFile(java.io.File filename,
                 java.io.File originalLocation,
                 java.lang.Integer part,
                 java.io.File rootMediaDir)
The constructor

Parameters:
filename - The current location of the video file
originalLocation - The original location of the file
part - The part number or null if not known/supported
rootMediaDir - The media dir the file is in
Method Detail

getLocation

public java.io.File getLocation()
Used to get the current location of the video file

Specified by:
getLocation in interface IVideoFile
Returns:
The current location of the video file

getOrginalLocation

public java.io.File getOrginalLocation()
Used to get the original location of the video file. This is the location it was first seen in.

Specified by:
getOrginalLocation in interface IVideoFile
Returns:
The original location of the file

setOrginalLocation

public void setOrginalLocation(java.io.File orginalLocation)
Used to set the original location of the video file. This is the location it was first seen in.

Specified by:
setOrginalLocation in interface IVideoFile
Parameters:
orginalLocation - The original location of the file

setLocation

public void setLocation(java.io.File location)
Used to set the current location of the video file

Specified by:
setLocation in interface IVideoFile
Parameters:
location - The current location of the video file

getPart

public java.lang.Integer getPart()
Used to get the part number of the file

Specified by:
getPart in interface IVideoFile
Returns:
The part number or null if not known/supported

setPart

public void setPart(java.lang.Integer part)
Used to set the part number of the file

Specified by:
setPart in interface IVideoFile
Parameters:
part - The part number or null if not known/supported

getMediaDirectory

public java.io.File getMediaDirectory()
Returns the media directory the file is in

Specified by:
getMediaDirectory in interface IVideoFile
Returns:
the media directory the file is in