Package com.storedobject.ui
Class Content
java.lang.Object
com.storedobject.ui.Content
- All Implemented Interfaces:
Executable
,ContentProducer
,ContentType
,Runnable
- Direct Known Subclasses:
PDFContent
Content coming from an
InputStream
that can be viewed or downloaded
(via Device.view(String, ContentProducer)
or Device.download(ContentProducer)
).- Author:
- Syam
-
Constructor Summary
ConstructorsConstructorDescriptionContent
(InputStream content, String mimeType, String fileExtension) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal InputStream
final String
final String
final void
produce()
void
setTransactionManager
(TransactionManager transactionManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.core.ContentProducer
abort, execute, extractContent, getEntity, getError, getStreamData, getStreamDataProvider, getSystemEntity, getTransactionManager, saveTo, saveTo, saveTo, saveTo
Methods inherited from interface com.storedobject.core.ContentType
getLink, getMimeType, isAudio, isHTML, isImage, isLink, isMedia, isPDF, isText, isVideo
Methods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
Content
Constructor.- Parameters:
content
- Content.mimeType
- Content type.fileExtension
- File extension.
-
-
Method Details
-
produce
public final void produce()- Specified by:
produce
in interfaceContentProducer
-
getContent
- Specified by:
getContent
in interfaceContentProducer
-
getFileName
- Specified by:
getFileName
in interfaceContentProducer
-
getContentType
- Specified by:
getContentType
in interfaceContentType
-
getFileExtension
- Specified by:
getFileExtension
in interfaceContentProducer
-
setTransactionManager
- Specified by:
setTransactionManager
in interfaceContentProducer
-