public class BinaryProperty extends Object implements ContentInfo, Serializable
Constructor and Description |
---|
BinaryProperty(org.alfresco.service.cmr.repository.ContentReader reader)
This is the preferred constructor to use.
|
BinaryProperty(String mimeType,
String encoding)
Sets the content length to zero, Locale to null, no stream and no caching
|
BinaryProperty(String mimeType,
String encoding,
long length,
Locale locale)
Sets no stream and no caching
|
Modifier and Type | Method and Description |
---|---|
String |
getEncoding() |
long |
getLength() |
Locale |
getLocale() |
String |
getMimeType() |
Long |
getSizeInBytes()
Used for serialization.
|
public BinaryProperty(String mimeType, String encoding)
mimeType
- Stringencoding
- Stringpublic BinaryProperty(org.alfresco.service.cmr.repository.ContentReader reader)
reader
- ContentReaderpublic String getMimeType()
getMimeType
in interface BasicContentInfo
public String getEncoding()
getEncoding
in interface BasicContentInfo
public Long getSizeInBytes()
public long getLength()
getLength
in interface ContentInfo
public Locale getLocale()
getLocale
in interface ContentInfo
Copyright © 2005–2017 Alfresco Software. All rights reserved.