Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Pdf_FileParserDataSource_String Class Reference

Public Member Functions

 __construct ($string)
 Object constructor.
 
 __destruct ()
 Object destructor.
 
 readBytes ($byteCount)
 Returns the specified number of raw bytes from the string at the byte offset of the current read position.
 
 readAllBytes ()
 Returns the entire string.
 
 __toString ()
 Returns a string containing the parsed string's length.
 
- Public Member Functions inherited from Zend_Pdf_FileParserDataSource
 __destruct ()
 Object destructor.
 
 readBytes ($byteCount)
 Returns the specified number of raw bytes from the data source at the byte offset of the current read position.
 
 readAllBytes ()
 Returns the entire contents of the data source as a string.
 
 __toString ()
 Returns a description of the object for debugging purposes.
 
 getOffset ()
 Returns the byte offset of the current read position within the data source.
 
 getSize ()
 Returns the total size in bytes of the data source.
 
 moveToOffset ($offset)
 Moves the current read position to the specified byte offset.
 
 skipBytes ($byteCount)
 Shifts the current read position within the data source by the specified number of bytes.
 

Protected Attributes

 $_string = ''
 
- Protected Attributes inherited from Zend_Pdf_FileParserDataSource
 $_size = 0
 
 $_offset = 0
 

Constructor & Destructor Documentation

__construct (   $string)

Object constructor.

Verifies that the string is not empty.

Parameters
string$stringString to parse.
__destruct ( )

Object destructor.

Member Function Documentation

__toString ( )

Returns a string containing the parsed string's length.

Returns
string
readAllBytes ( )

Returns the entire string.

Preserves the current read position.

Returns
string
readBytes (   $byteCount)

Returns the specified number of raw bytes from the string at the byte offset of the current read position.

Advances the read position by the number of bytes read.

Throws an exception if there is insufficient data to completely fulfill the request.

Parameters
integer$byteCountNumber of bytes to read.
Returns
string
Exceptions
Zend_Pdf_Exception

Member Data Documentation

$_string = ''
protected