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()booleanisLink()voidproduce()Produce the content.voidsetFileName(String fileName) voidSets the transaction manager for this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.core.ContentProducer
abort, execute, extractContent, getEntity, getError, getStreamData, getStreamDataProvider, getSystemEntity, getTransactionManager, ready, saveTo, saveTo, saveTo, saveToMethods inherited from interface com.storedobject.core.ContentType
getMimeType, isAudio, isHTML, isImage, isMedia, isPDF, isText, isVideoMethods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
StreamDataContent
-
StreamDataContent
-
-
Method Details
-
produce
public void produce()Description copied from interface:ContentProducerProduce the content.- Specified by:
producein interfaceContentProducer
-
getContent
- Specified by:
getContentin interfaceContentProducer- Throws:
Exception
-
getContentType
- Specified by:
getContentTypein interfaceContentType
-
getFileName
- Specified by:
getFileNamein interfaceContentProducer
-
setFileName
-
getFileExtension
- Specified by:
getFileExtensionin interfaceContentProducer
-
setTransactionManager
Description copied from interface:RequiresTransactionManagerSets the transaction manager for this object. The transaction manager is responsible for managing transaction boundaries.- Specified by:
setTransactionManagerin interfaceRequiresTransactionManager- Parameters:
tm- the transaction manager to be set
-
isLink
public boolean isLink()- Specified by:
isLinkin interfaceContentType
-
getLink
- Specified by:
getLinkin interfaceContentType
-