Class Content


  • public class Content
    extends Object
    Content - a stream of bits and properties to describe the stream.
    Author:
    Bill Branan
    • 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.