Zend Framework
1.12
|
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. | |
![]() | |
__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 = '' | |
![]() | |
$_size = 0 | |
$_offset = 0 | |
__construct | ( | $string | ) |
Object constructor.
Verifies that the string is not empty.
string | $string | String to parse. |
__destruct | ( | ) |
Object destructor.
__toString | ( | ) |
Returns a string containing the parsed string's length.
readAllBytes | ( | ) |
Returns the entire string.
Preserves the current read position.
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.
integer | $byteCount | Number of bytes to read. |
Zend_Pdf_Exception |
|
protected |