org.duracloud.domain
Class Content

java.lang.Object
  extended by org.duracloud.domain.Content

public class Content
extends java.lang.Object

Content - a stream of bits and properties to describe the stream.

Author:
Bill Branan

Constructor Summary
Content()
           
 
Method Summary
 void addProperties(java.lang.String name, java.lang.String value)
          Adds an item to the content properties map
 java.lang.String getId()
          Getter for the field id.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Getter for the field properties.
 java.io.InputStream getStream()
          Getter for the field stream.
 void setId(java.lang.String id)
          Setter for the field id.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Setter for the field properties.
 void setStream(java.io.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 java.lang.String getId()

Getter for the field id.


setId

public void setId(java.lang.String id)

Setter for the field id.


getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()

Getter for the field properties.


setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)

Setter for the field properties.


addProperties

public void addProperties(java.lang.String name,
                          java.lang.String value)

Adds an item to the content properties map

Parameters:
name - properties key
value - properties value

getStream

public java.io.InputStream getStream()

Getter for the field stream.


setStream

public void setStream(java.io.InputStream stream)

Setter for the field stream.



Copyright © 2009-2011 DuraSpace. All Rights Reserved.