Package com.storedobject.core
Class StreamDataContent
java.lang.Object
com.storedobject.core.StreamDataContent
- All Implemented Interfaces:
Executable
,ContentProducer
,ContentType
,RequiresTransactionManager
,Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLink()
boolean
isLink()
void
produce()
Produce the content.void
setFileName
(String fileName) void
Sets the transaction manager for this object.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, ready, saveTo, saveTo, saveTo, saveTo
Methods inherited from interface com.storedobject.core.ContentType
getMimeType, isAudio, isHTML, isImage, isMedia, isPDF, isText, isVideo
Methods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
StreamDataContent
-
StreamDataContent
-
-
Method Details
-
produce
public void produce()Description copied from interface:ContentProducer
Produce the content.- Specified by:
produce
in interfaceContentProducer
-
getContent
- Specified by:
getContent
in interfaceContentProducer
- Throws:
Exception
-
getContentType
- Specified by:
getContentType
in interfaceContentType
-
getFileName
- Specified by:
getFileName
in interfaceContentProducer
-
setFileName
-
getFileExtension
- Specified by:
getFileExtension
in interfaceContentProducer
-
setTransactionManager
Description copied from interface:RequiresTransactionManager
Sets the transaction manager for this object. The transaction manager is responsible for managing transaction boundaries.- Specified by:
setTransactionManager
in interfaceRequiresTransactionManager
- Parameters:
tm
- the transaction manager to be set
-
isLink
public boolean isLink()- Specified by:
isLink
in interfaceContentType
-
getLink
- Specified by:
getLink
in interfaceContentType
-