org.duracloud.domain
Class Content

java.lang.Object
  extended by 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
Content()
           
 
Method Summary
 void addProperties(String name, String value)
          Adds an item to the content properties map
 String getId()
          Getter for the field id.
 Map<String,String> getProperties()
          Getter for the field properties.
 InputStream getStream()
          Getter for the field stream.
 void setId(String id)
          Setter for the field id.
 void setProperties(Map<String,String> properties)
          Setter for the field properties.
 void setStream(InputStream stream)
          Setter for the field stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Content

public Content()
Method Detail

getId

public String getId()

Getter for the field id.


setId

public void setId(String id)

Setter for the field id.


getProperties

public Map<String,String> getProperties()

Getter for the field properties.


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 key
value - properties value

getStream

public InputStream getStream()

Getter for the field stream.


setStream

public void setStream(InputStream stream)

Setter for the field stream.



Copyright © 2009-2012 DuraSpace. All Rights Reserved.