Package com.storedobject.common
Interface TextContentGenerator
- All Superinterfaces:
ContentGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Anything that generates some sort of text "content".
- Author:
- Syam
-
Field Summary
Fields inherited from interface com.storedobject.common.ContentGenerator
ext -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateContent(Writer output) Generate the content and write to a writer.default StringMime type of the content.default StringFile extension normally used for this type of content.
-
Method Details
-
generateContent
-
getContentType
Mime type of the content.- Specified by:
getContentTypein interfaceContentGenerator- Returns:
- Default implementation returns "text/plain".
-
getFileExtension
File extension normally used for this type of content.- Specified by:
getFileExtensionin interfaceContentGenerator- Returns:
- Default implementation returns "txt".
-