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