Package com.storedobject.core
Class ImageProducer
java.lang.Object
com.storedobject.core.StreamContentProducer
com.storedobject.core.ImageProducer
- All Implemented Interfaces:
Executable,ContentProducer,ContentType,RequiresTransactionManager,Closeable,AutoCloseable,Runnable
-
Field Summary
Fields inherited from class com.storedobject.core.StreamContentProducer
entity, out -
Constructor Summary
ConstructorsConstructorDescriptionImageProducer(ImageGenerator imageGenerator) ImageProducer(ImageGenerator imageGenerator, OutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerate the content here and write to 'out'Retrieves the file extension associated with the content.voidsetContentGenerator(ImageGenerator imageGenerator) Methods inherited from class com.storedobject.core.StreamContentProducer
abort, close, getContent, getEntity, getError, getFileName, getReportFormat, getTransactionManager, getWriter, isBlocked, isBlocked, produce, ready, setTransactionManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.core.ContentProducer
execute, extractContent, getStreamData, getStreamDataProvider, getSystemEntity, saveTo, saveTo, saveTo, saveToMethods inherited from interface com.storedobject.core.ContentType
getLink, getMimeType, isAudio, isHTML, isImage, isLink, isMedia, isPDF, isText, isVideoMethods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
ImageProducer
public ImageProducer() -
ImageProducer
-
ImageProducer
-
ImageProducer
-
-
Method Details
-
setContentGenerator
-
getContentType
-
getFileExtension
Description copied from interface:ContentProducerRetrieves the file extension associated with the content.- Returns:
- a String representing the file extension, or an empty string if no extension is available.
-
generateContent
Description copied from class:StreamContentProducerGenerate the content here and write to 'out'- Specified by:
generateContentin classStreamContentProducer- Throws:
Exception- Can throw anything
-