lib/objectstorage/objectinfo.js
function ObjectInfo(name, contentType) {
  this._name = name;
  this._type = contentType || ObjectInfo.DEFAULT_CONTENT_TYPE;
  this._partial = false;
}
function ObjectInfo(name, contentType) {
  this._name = name;
  this._type = contentType || ObjectInfo.DEFAULT_CONTENT_TYPE;
  this._partial = false;
}
function ObjectInfo ( name , contentType ) { this . _name = name ; this . _type = contentType || ObjectInfo . DEFAULT_CONTENT_TYPE ; this . _partial = false ; }
Build a new ObjectInfo instance.

This represents the data about an object. It is used under the
following circumstances:

- SAVING: When creating a new object, you declare the object as
ObjectInfo. When saving, you will save with an ObjectInfo and a Stream
of data. See Container.save().
- LISTING: When calling Container.objects(), a list including ObjectInfo
items will be returned.
- FETCHING METADATA: Using Container.objectInfo(), you can get just the
info about an object, without downloading the entire object.
- FETCHING OBJECT: When you fetch the entire object, you will also get
the ObjectInfo. See RemoteObject.info().
- UPATING METADATA: When updating just the metadata on an object, you
will supply an ObjectInfo object.

@class ObjectInfo
@constructor
@param {String} name The name of the object.
@param {String} [contentType] (Optional) The type of content, defaults to Application/X-Octet-Stream.
Build a new ObjectInfo instance .