public interface IStreamableFileService
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(File file)
Check whether file can be used by file service, that is, it does exist and have valid extension
|
String |
getExtension()
Getter for extension of file
|
String |
getPrefix()
Getter for prefix.
|
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.
|
void setPrefix(String prefix)
prefix
- String getPrefix()
void setExtension(String extension)
extension
- String getExtension()
String prepareFilename(String name)
name
- String to formatboolean canHandle(File file)
file
- File objecttrue
if file exist and has valid extension,
false
otherwiseIStreamableFile getStreamableFile(File file) throws IOException
file
- File resourceIOException
- Thrown if there were problems accessing given fileCopyright © 2006-2012 The Red5 Project