public class CSMediaContentFile
extends java.lang.Object
implements java.io.Serializable
A CSMediaContent
object contains an ArrayList
of CSMediaContentFile
objects.
Each one represents one of the files containing the media item. It is normal for a single media item to have multiple
files, for example it could have a thumbnail, a small and a large image.
CSMedia
,
CSMediaContent
,
Serialized FormConstructor and Description |
---|
CSMediaContentFile()
Default constructor that returns a new
CSMediaContentFile object. |
CSMediaContentFile(java.lang.String strFileName,
java.lang.String strFilePath,
java.lang.String strFileType)
Constructor that accepts a file name and file type and uses them to construct a new
CSMediaContentFile object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a duplicate of this
CSMediaContentFile object. |
boolean |
equals(java.lang.Object obj)
Determines whether the data contained in this
CSMediaContentFile object is equal to another
object. |
java.lang.String |
getFileName()
Gets the name of this media file.
|
java.lang.String |
getFilePath()
Gets the absolute path/name of this media file.
|
java.lang.String |
getFileType()
Gets the type of this media file.
|
void |
setFileName(java.lang.String strFileName)
Sets the name of this media file.
|
void |
setFilePath(java.lang.String strFilePath)
Sets the absolute path/name of this media file.
|
void |
setFileType(java.lang.String strFileType)
Sets the type of this media file.
|
public CSMediaContentFile()
CSMediaContentFile
object.public CSMediaContentFile(java.lang.String strFileName, java.lang.String strFilePath, java.lang.String strFileType)
CSMediaContentFile
object.strFileName
- the media file name.strFilePath
- the absolute file path for the media file.strFileType
- the media file's type.public void setFileName(java.lang.String strFileName)
strFileName
- a String
containing the name of this media file.public java.lang.String getFileName()
String
containing the name of this media file.public void setFilePath(java.lang.String strFilePath)
strFilePath
- a String
containing the absolute path and name.public java.lang.String getFilePath()
String
containing the absolute path and name.public void setFileType(java.lang.String strFileType)
strFileType
- a String
containing the type of this media file.public java.lang.String getFileType()
String
containing the type of this media file.public boolean equals(java.lang.Object obj)
CSMediaContentFile
object is equal to another
object. Both the file name and file type must be identical in order for this method to deem the objects equal.
Note that the key data used for searching is not tested for equality.
equals
in class java.lang.Object
obj
- the object to be tested for equality.false
if there are any differences between the objects, true otherwise.public java.lang.Object clone() throws java.lang.OutOfMemoryError
CSMediaContentFile
object.
clone
in class java.lang.Object
CSMediaContentFile
object.java.lang.OutOfMemoryError
- if there are any problems allocating memory.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.