Package org.red5.io
Class FileKeyFrameMetaCache
- java.lang.Object
-
- org.red5.io.FileKeyFrameMetaCache
-
- All Implemented Interfaces:
IKeyFrameMetaCache
- Direct Known Subclasses:
CachingFileKeyFrameMetaCache
public class FileKeyFrameMetaCache extends Object implements IKeyFrameMetaCache
File-based keyframe metadata cache.- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
-
Constructor Summary
Constructors Constructor Description FileKeyFrameMetaCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IKeyFrameDataAnalyzer.KeyFrameMetaloadKeyFrameMeta(File file)Load keyframe informations for the given file.voidremoveKeyFrameMeta(File file)Remove keyframe information for given file.voidsaveKeyFrameMeta(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta)Store keyframe informations for the given file.
-
-
-
Method Detail
-
loadKeyFrameMeta
public IKeyFrameDataAnalyzer.KeyFrameMeta loadKeyFrameMeta(File file)
Load keyframe informations for the given file.- Specified by:
loadKeyFrameMetain interfaceIKeyFrameMetaCache- Parameters:
file- File to load informations for.- Returns:
- The keyframe informations or
nullif none exist.
-
removeKeyFrameMeta
public void removeKeyFrameMeta(File file)
Description copied from interface:IKeyFrameMetaCacheRemove keyframe information for given file. Need to update keyframe cache when re-writing file.- Specified by:
removeKeyFrameMetain interfaceIKeyFrameMetaCache- Parameters:
file- File to remove information for.
-
saveKeyFrameMeta
public void saveKeyFrameMeta(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta)
Store keyframe informations for the given file.- Specified by:
saveKeyFrameMetain interfaceIKeyFrameMetaCache- Parameters:
file- File to save informations for.meta- Keyframe informations for this file.
-
-