|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStreamableFileService
Provides access to files that can be streamed.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void setPrefix(String prefix)
prefix - String getPrefix()
void setExtension(String extension)
extension - String getExtension()
String prepareFilename(String name)
name - String to format
boolean canHandle(File file)
file - File object
true if file exist and has valid extension,
false otherwise
IStreamableFile getStreamableFile(File file)
throws IOException
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 | |||||||||