Package lumis.portal.file.metadata
Class FileMetadata
- java.lang.Object
-
- lumis.portal.file.metadata.FileMetadata
-
- All Implemented Interfaces:
IFileMetadata
,IFileMetadata
@StableMinor(version="17.0", sinceVersion="6.1") public class FileMetadata extends java.lang.Object implements IFileMetadata
Value object that contains the metadata of a file.- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from interface lumis.portal.fileparser.IFileMetadata
METADATA_DURATION, METADATA_FORMAT, METADATA_HEIGHT, METADATA_WIDTH
-
-
Constructor Summary
Constructors Constructor Description FileMetadata()
Creates a new FileMetadata.FileMetadata(FileMacrotype macroType)
Creates a new FileMetadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
getAudioBitRate()
Returns the audio bit rate metadata.java.lang.Integer
getAudioChannels()
Returns the number of audio channels metadata.java.lang.Integer
getAudioSamplingRate()
Returns the audio sampling rate metadata.java.lang.Integer
getColorDepth()
Returns the color depth metadata.java.lang.Long
getDuration()
Returns the duration metadata, in milliseconds.java.lang.String
getFormat()
Returns the format metadata.java.lang.Integer
getHeight()
Returns the height metadata.FileMacrotype
getMacroType()
Returns the file macro type.java.lang.Double
getVideoFrameRate()
Returns the video frame rate metadata.java.lang.Integer
getWidth()
Returns the width metadata.void
setAudioBitRate(java.lang.Double audioBitRate)
Sets the audio bit rate metadata.void
setAudioChannels(java.lang.Integer audioChannels)
Sets the number of audio channels metadata.void
setAudioSamplingRate(java.lang.Integer audioSamplingRate)
Sets the audio sampling rate metadata.void
setColorDepth(java.lang.Integer colorDepth)
Sets the color depth metadata.void
setDuration(java.lang.Long duration)
Sets the duration metadata, in milliseconds.void
setFormat(java.lang.String format)
Sets the format metadata.void
setHeight(java.lang.Integer height)
Sets the height metadata.void
setVideoFrameRate(java.lang.Double videoFrameRate)
Sets the video frame rate metadata.void
setWidth(java.lang.Integer width)
Sets the width metadata.
-
-
-
Constructor Detail
-
FileMetadata
public FileMetadata()
Creates a new FileMetadata.- Since:
- 6.1.0
-
FileMetadata
public FileMetadata(FileMacrotype macroType)
Creates a new FileMetadata.- Since:
- 7.0.0
-
-
Method Detail
-
getHeight
public java.lang.Integer getHeight()
Returns the height metadata.- Specified by:
getHeight
in interfaceIFileMetadata
- Specified by:
getHeight
in interfaceIFileMetadata
- Returns:
- the height metadata, or
null
if it is unknown or not applicable. - Since:
- 6.1.0
-
setHeight
public void setHeight(java.lang.Integer height)
Sets the height metadata.- Parameters:
height
- the height, ornull
if it is unknown or not applicable.- Since:
- 6.1.0
-
getWidth
public java.lang.Integer getWidth()
Returns the width metadata.- Specified by:
getWidth
in interfaceIFileMetadata
- Specified by:
getWidth
in interfaceIFileMetadata
- Returns:
- the width metadata, or
null
if it is unknown or not applicable. - Since:
- 6.1.0
-
setWidth
public void setWidth(java.lang.Integer width)
Sets the width metadata.- Parameters:
width
- the width, ornull
if it is unknown or not applicable.- Since:
- 6.1.0
-
getDuration
public java.lang.Long getDuration()
Description copied from interface:IFileMetadata
Returns the duration metadata, in milliseconds.- Specified by:
getDuration
in interfaceIFileMetadata
- Specified by:
getDuration
in interfaceIFileMetadata
- Returns:
- the duration in milliseconds, or
null
if it is unknown or not applicable.
-
setDuration
public void setDuration(java.lang.Long duration)
Sets the duration metadata, in milliseconds.- Parameters:
duration
- the duration in milliseconds, ornull
if it is unknown or not applicable.- Since:
- 6.1.0
-
getFormat
public java.lang.String getFormat()
Description copied from interface:IFileMetadata
Returns the format metadata.- Specified by:
getFormat
in interfaceIFileMetadata
- Specified by:
getFormat
in interfaceIFileMetadata
- Returns:
- the format, or
null
if it is unknown or not applicable.
-
setFormat
public void setFormat(java.lang.String format)
Sets the format metadata.- Parameters:
format
- the format, ornull
if it is unknown or not applicable.- Since:
- 6.1.0
-
getColorDepth
public java.lang.Integer getColorDepth()
Description copied from interface:IFileMetadata
Returns the color depth metadata.- Specified by:
getColorDepth
in interfaceIFileMetadata
- Returns:
- the color depth, in bits per pixel, or
null
if it is unknown or not applicable.
-
setColorDepth
public void setColorDepth(java.lang.Integer colorDepth)
Sets the color depth metadata.- Parameters:
colorDepth
- the color depth, in bits per pixel, ornull
if it is unknown or not applicable.- Since:
- 7.0.0
-
getVideoFrameRate
public java.lang.Double getVideoFrameRate()
Description copied from interface:IFileMetadata
Returns the video frame rate metadata.- Specified by:
getVideoFrameRate
in interfaceIFileMetadata
- Returns:
- the video frame rate in frames per second, or
null
if it is unknown or not applicable.
-
setVideoFrameRate
public void setVideoFrameRate(java.lang.Double videoFrameRate)
Sets the video frame rate metadata.- Parameters:
the
- video frame rate in frames per second, in bits per pixel, ornull
if it is unknown or not applicable.- Since:
- 7.0.0
-
getAudioBitRate
public java.lang.Double getAudioBitRate()
Description copied from interface:IFileMetadata
Returns the audio bit rate metadata.- Specified by:
getAudioBitRate
in interfaceIFileMetadata
- Returns:
- the audio bit rate in kilobits per second, or
null
if it is unknown or not applicable.
-
setAudioBitRate
public void setAudioBitRate(java.lang.Double audioBitRate)
Sets the audio bit rate metadata.- Parameters:
the
- audio bit rate in kilobits per second, ornull
if it is unknown or not applicable.- Since:
- 7.0.0
-
getAudioSamplingRate
public java.lang.Integer getAudioSamplingRate()
Description copied from interface:IFileMetadata
Returns the audio sampling rate metadata.- Specified by:
getAudioSamplingRate
in interfaceIFileMetadata
- Returns:
- the audio sampling rate in Hz, or
null
if it is unknown or not applicable.
-
setAudioSamplingRate
public void setAudioSamplingRate(java.lang.Integer audioSamplingRate)
Sets the audio sampling rate metadata.- Parameters:
the
- audio sampling rate in Hz, ornull
if it is unknown or not applicable.- Since:
- 7.0.0
-
getAudioChannels
public java.lang.Integer getAudioChannels()
Description copied from interface:IFileMetadata
Returns the number of audio channels metadata.- Specified by:
getAudioChannels
in interfaceIFileMetadata
- Returns:
- the number of audio channels, or
null
if it is unknown or not applicable.
-
setAudioChannels
public void setAudioChannels(java.lang.Integer audioChannels)
Sets the number of audio channels metadata.- Parameters:
the
- number of audio channels, ornull
if it is unknown or not applicable.- Since:
- 7.0.0
-
getMacroType
public FileMacrotype getMacroType()
Returns the file macro type.- Specified by:
getMacroType
in interfaceIFileMetadata
- Returns:
- the file macro type
- Since:
- 7.0.0
- See Also:
FileMacrotype
-
-