|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.BaseStreamableFileService
public abstract class BaseStreamableFileService
Base class for streamable file services.
| Constructor Summary | |
|---|---|
BaseStreamableFileService()
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(File file)
Check whether file can be used by file service, that is, it does exist and have valid extension |
abstract String |
getExtension()
Getter for extension of file |
abstract String |
getPrefix()
Getter for prefix. |
abstract IStreamableFile |
getStreamableFile(File file)
Return streamable file reference. |
String |
prepareFilename(String name)
Prepair given string to conform filename requirements, for example, add extension to the end if missing. |
void |
setExtension(String extension)
Sets the file extensions serviced. |
void |
setPrefix(String prefix)
Sets the prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseStreamableFileService()
| Method Detail |
|---|
public void setPrefix(String prefix)
setPrefix in interface IStreamableFileServicepublic abstract String getPrefix()
getPrefix in interface IStreamableFileServicepublic void setExtension(String extension)
setExtension in interface IStreamableFileServicepublic abstract String getExtension()
getExtension in interface IStreamableFileServicepublic String prepareFilename(String name)
prepareFilename in interface IStreamableFileServicename - String to format
public boolean canHandle(File file)
canHandle in interface IStreamableFileServicefile - File object
true if file exist and has valid extension,
false otherwise
public abstract IStreamableFile getStreamableFile(File file)
throws IOException
getStreamableFile in interface IStreamableFileServicefile - File resource
IOException - Thrown if there were problems accessing given file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||