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 TypeMethodDescriptionvoid
generateContent
(Writer output) Generate the content and write to a writer.default String
Mime type of the content.default String
File extension normally used for this type of content.
-
Method Details
-
generateContent
-
getContentType
Mime type of the content.- Specified by:
getContentType
in interfaceContentGenerator
- Returns:
- Default implementation returns "text/plain".
-
getFileExtension
File extension normally used for this type of content.- Specified by:
getFileExtension
in interfaceContentGenerator
- Returns:
- Default implementation returns "txt".
-