C# Class Google.GData.Client.MediaFileSource

a file based implementation. Takes a filename as it's base working mode
Inheritance: MediaSource
Exibir arquivo Open project: moljac/MonoMobile.Google.GData Class Usage Examples

Private Properties

Property Type Description
CopyStream void

Public Methods

Method Description
GetDataStream ( ) : Stream

returns the stream for the file. The file will be opened in readonly mode note, the caller has to release the resource

MediaFileSource ( Stream data, string fileName, string contentType ) : System

constructor. note that you can override the slug header without influencing the filename

MediaFileSource ( string fileName, string contentType ) : System

constructor. note that you can override the slug header without influencing the filename

Private Methods

Method Description
CopyStream ( Stream input, Stream output ) : void

Method Details

GetDataStream() public method

returns the stream for the file. The file will be opened in readonly mode note, the caller has to release the resource
public GetDataStream ( ) : Stream
return Stream

MediaFileSource() public method

constructor. note that you can override the slug header without influencing the filename
public MediaFileSource ( Stream data, string fileName, string contentType ) : System
data Stream The stream for the file. If this constructor is used, the filename is only /// used for descriptive purposes, the data will be read from the passed stream
fileName string the file to be used, this will be the default slug header
contentType string the content type to be used
return System

MediaFileSource() public method

constructor. note that you can override the slug header without influencing the filename
public MediaFileSource ( string fileName, string contentType ) : System
fileName string the file to be used, this will be the default slug header
contentType string the content type to be used
return System