|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.flv.impl.FLV
public class FLV
A FLVImpl implements the FLV api
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
FLV()
Default constructor, used by Spring so that parameters may be injected. |
|
FLV(File file)
Create FLV from given file source |
|
FLV(File file,
boolean generateMetadata)
Create FLV from given file source and with specified metadata generation option |
|
| Method Summary | |
|---|---|
void |
flushHeaders()
Flushes Header |
ITagWriter |
getAppendWriter()
Returns a Writer which is setup to append to the file. |
Map |
getKeyFrameData()
Gets the keyframe data |
IMetaData |
getMetaData()
Returns a map of the metadata |
ITagReader |
getReader()
Returns a reader to parse and read the tags inside the file. |
ITagWriter |
getWriter()
Returns a writer that creates a new file or truncates existing contents. |
boolean |
hasKeyFrameData()
Returns a boolean stating whether a flv has keyframedata |
boolean |
hasMetaData()
Returns a boolean stating whether the flv has metadata |
ITagReader |
readerFromNearestKeyFrame(int seekPoint)
Returns a Reader closest to the nearest keyframe |
void |
refreshHeaders()
Refreshes the headers. |
void |
setCache(ICacheStore cache)
Sets the cache implementation to be used. |
void |
setKeyFrameData(Map keyframedata)
Sets the keyframe data of a flv file |
void |
setMetaData(IMetaData meta)
Sets the metadata |
void |
setMetaService(IMetaService service)
Sets the MetaService through Spring |
ITagWriter |
writerFromNearestKeyFrame(int seekPoint)
Returns a Writer based on the nearest key frame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public FLV()
public FLV(File file)
file - File source
public FLV(File file,
boolean generateMetadata)
file - File sourcegenerateMetadata - Metadata generation option| Method Detail |
|---|
public void setCache(ICacheStore cache)
setCache in interface IFLVcache - Cache storepublic boolean hasMetaData()
hasMetaData in interface IFLVtrue if file has injected metadata, false otherwise
public IMetaData getMetaData()
throws FileNotFoundException
getMetaData in interface IFLVFileNotFoundException - File not foundpublic boolean hasKeyFrameData()
hasKeyFrameData in interface IFLVtrue if file has keyframe metadata, false otherwisepublic void setKeyFrameData(Map keyframedata)
setKeyFrameData in interface IFLVkeyframedata - Keyframe metadatapublic Map getKeyFrameData()
getKeyFrameData in interface IFLV
public void refreshHeaders()
throws IOException
refreshHeaders in interface IFLVIOException - Any I/O exception
public void flushHeaders()
throws IOException
flushHeaders in interface IFLVIOException - Any I/O exception
public ITagReader getReader()
throws IOException
getReader in interface IStreamableFileIOException - I/O exceptionpublic ITagReader readerFromNearestKeyFrame(int seekPoint)
readerFromNearestKeyFrame in interface IFLVseekPoint - Point in file we are seeking around
public ITagWriter getWriter()
throws IOException
getWriter in interface IStreamableFileIOException - I/O exception
public ITagWriter getAppendWriter()
throws IOException
getAppendWriter in interface IStreamableFileIOException - I/O exceptionpublic ITagWriter writerFromNearestKeyFrame(int seekPoint)
writerFromNearestKeyFrame in interface IFLVseekPoint - Point in file we are seeking around
public void setMetaData(IMetaData meta)
throws IOException
setMetaData in interface IFLVmeta - Metadata object
FileNotFoundException - File not found
IOException - Any other I/O exceptionpublic void setMetaService(IMetaService service)
setMetaService in interface IFLVservice - Metadata service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||