Package com.storedobject.common
Interface ContentGenerator
- All Known Subinterfaces:
BinaryContentGenerator,ImageGenerator,TextContentGenerator
- All Known Implementing Classes:
CSV,GeneratedImage,SVG
public interface ContentGenerator
Anything that generates some sort of "content".
- Author:
- Syam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionMime type of the content.default StringFile extension normally used for this type of content.static StringgetFileExtension(String type)
-
Field Details
-
ext
-
-
Method Details
-
getContentType
-
getFileExtension
File extension normally used for this type of content. The default implementation tries to guess the file extension from the mime type.- Returns:
- File extension without any prefix. Examples: "txt", "svg" etc.
-
getFileExtension
-