A wrapper for strings for buffered reading.

category Zend
package Zend_Gdata
subpackage Gdata
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Create a new MimeBodyString object.

__construct(string $sourceString) 

Parameters

$sourceString

string

The string we are wrapping.

The length of the string.

getSize() : integer

Returns

integerThe length of the string contained in the object.

Read the next chunk of the string.

read(integer $bytesRequested) : string

Parameters

$bytesRequested

integer

The size of the chunk that is to be read.

Returns

stringA corresponding piece of the string.

 Properties

 

The size of the MIME message.

$_bytesRead : integer

Default

0
 

The source string.

$_sourceString : string

Default

''