Package org.alfresco.repo.template
Class BaseContentNode.TemplateContentData
java.lang.Object
org.alfresco.repo.template.BaseContentNode.TemplateContentData
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BaseContentNode
Inner class wrapping and providing access to a ContentData property
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentAsText(int length) getContentMaxLength(int length) longgetSize()getUrl()
-
Constructor Details
-
TemplateContentData
Constructor- Parameters:
contentData- The ContentData object this object wrapsproperty- The property the ContentData is attached too
-
-
Method Details
-
getContent
- Returns:
- the content stream
-
getContentMaxLength
- Returns:
- the content stream to the specified maximum length in characters
-
getContentAsText
- Parameters:
length- Length of the character stream to return, or -1 for all- Returns:
- the binary content stream converted to text using any available transformer if fails to convert then null will be returned
-
getUrl
-
getDownloadUrl
-
getServiceUrl
-
getSize
public long getSize() -
getMimetype
-
getDisplayMimetype
-
getEncoding
-