|
||||||||||
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 IStreamableFileService
public abstract String getPrefix()
getPrefix
in interface IStreamableFileService
public void setExtension(String extension)
setExtension
in interface IStreamableFileService
public abstract String getExtension()
getExtension
in interface IStreamableFileService
public String prepareFilename(String name)
prepareFilename
in interface IStreamableFileService
name
- String to format
public boolean canHandle(File file)
canHandle
in interface IStreamableFileService
file
- File object
true
if file exist and has valid extension,
false
otherwisepublic abstract IStreamableFile getStreamableFile(File file) throws IOException
getStreamableFile
in interface IStreamableFileService
file
- 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 |