Class BinaryProperty

java.lang.Object
org.alfresco.rest.framework.resource.content.BinaryProperty
All Implemented Interfaces:
Serializable, BasicContentInfo, ContentInfo

public class BinaryProperty extends Object implements ContentInfo, Serializable
A POJO property that is of type "Binary" You can add this to your object to be serialized as a normal property.
Author:
Gethin James
See Also:
  • Constructor Details

    • BinaryProperty

      public BinaryProperty(String mimeType, String encoding)
      Sets the content length to zero, Locale to null, no stream and no caching
      Parameters:
      mimeType - String
      encoding - String
    • BinaryProperty

      public BinaryProperty(ContentReader reader)
      This is the preferred constructor to use. Takes the properties from content reader that it needs.
      Parameters:
      reader - ContentReader
    • BinaryProperty

      public BinaryProperty(String mimeType, String encoding, long length, Locale locale)
      Sets no stream and no caching
      Parameters:
      mimeType - String
      encoding - String
      length - long
      locale - Locale
  • Method Details