Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
A streaming Media MIME class that allows for buffered read operations.


 resource
                 $_fileHandle= 'null'
resource
                 $_fileHandle= 'null'
                A handle to the file that is part of the message.
nullDetails

 array
                 $_parts= 'null'
array
                 $_parts= 'null'
                An array of all the parts to be sent. Array members are either a MimeFile or a MimeBodyString object.
nullDetails

 __construct(
          string $xmlString
              =
              null, string $filePath
              =
              null, string $fileContentType
              =
              null
          )
        
        :
          void
__construct(
          string $xmlString
              =
              null, string $filePath
              =
              null, string $fileContentType
              =
              null
          )
        
        :
          voidCreate a new MimeMediaStream object.
| Name | Type | Description | 
|---|---|---|
| $xmlString | string | The string corresponding to the XML section of the message, typically an atom entry or feed. | 
| $filePath | string | The path to the file that constitutes the binary part of the message. | 
| $fileContentType | string | The valid internet media type of the file. | 
| Exception | Description | 
|---|---|
| \Zend_Gdata_App_IOException | If the file cannot be read or does not exist. Also if mbstring.func_overload has been set > 1. | 


 getContentType(
          
          )
        
        :
          string
getContentType(
          
          )
        
        :
          stringReturn a Content-type header that includes the current boundary string.
| Type | Description | 
|---|---|
| string | A valid HTTP Content-Type header. | 


 getTotalSize(
          
          )
        
        :
          integer
getTotalSize(
          
          )
        
        :
          integerReturn the total size of the mime message.
| Type | Description | 
|---|---|
| integer | Total size of the message to be sent. | 


 read(
           $bytesRequested
          )
        
        :
          string
read(
           $bytesRequested
          )
        
        :
          stringRead a specific chunk of the the MIME multipart message.
| Name | Type | Description | 
|---|---|---|
| $bytesRequested | 
| Type | Description | 
|---|---|
| string | A corresponding piece of the message. This could be binary or regular text. |