Package org.duracloud.domain
Class Content
- java.lang.Object
-
- org.duracloud.domain.Content
-
public class Content extends Object
Content - a stream of bits and properties to describe the stream.- Author:
- Bill Branan
-
-
Constructor Summary
Constructors Constructor Description Content()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperties(String name, String value)Adds an item to the content properties mapStringgetId()Getter for the fieldid.Map<String,String>getProperties()Getter for the fieldproperties.InputStreamgetStream()Getter for the fieldstream.voidsetId(String id)Setter for the fieldid.voidsetProperties(Map<String,String> properties)Setter for the fieldproperties.voidsetStream(InputStream stream)Setter for the fieldstream.
-
-
-
Method Detail
-
getId
public String getId()
Getter for the field
id.
-
setId
public void setId(String id)
Setter for the field
id.
-
setProperties
public void setProperties(Map<String,String> properties)
Setter for the field
properties.
-
addProperties
public void addProperties(String name, String value)
Adds an item to the content properties map
- Parameters:
name- properties keyvalue- properties value
-
getStream
public InputStream getStream()
Getter for the field
stream.
-
setStream
public void setStream(InputStream stream)
Setter for the field
stream.
-
-