C# Class Google.GData.Client.MediaSource

placeholder for a media object to be uploaded the base class only defines some primitives like content type
Show file Open project: moljac/MonoMobile.Google.GData

Private Properties

Property Type Description

Public Methods

Method Description
GetContentTypeForFileName ( string fileName ) : string

tries to get a contenttype for a filename by using the classesRoot in the registry. Will FAIL if that filetype is not registered with a contenttype

GetDataStream ( ) : Stream

returns a stream of the actual content that is base64 encoded

MediaSource ( string contenttype ) : System

constructs a media source based on a contenttype

MediaSource ( string name, string contenttype ) : System

constructs a media source based on a contenttype and a name

Method Details

GetContentTypeForFileName() public static method

tries to get a contenttype for a filename by using the classesRoot in the registry. Will FAIL if that filetype is not registered with a contenttype
public static GetContentTypeForFileName ( string fileName ) : string
fileName string
return string

GetDataStream() public abstract method

returns a stream of the actual content that is base64 encoded
public abstract GetDataStream ( ) : Stream
return Stream

MediaSource() public method

constructs a media source based on a contenttype
public MediaSource ( string contenttype ) : System
contenttype string the contenttype of the file
return System

MediaSource() public method

constructs a media source based on a contenttype and a name
public MediaSource ( string name, string contenttype ) : System
name string the name of the content
contenttype string the contenttype of the file
return System