\JStreamString
String Stream Wrapper
This class allows you to use a PHP string in the same way that
you would normally use a regular stream wrapper
Synopsis
class JStreamString
{
- // members
- protected $currentString;
- protected $path;
- protected $mode;
- protected $options;
- protected $openedPath;
- protected $pos;
- protected $len;
- protected $stat;
- // methods
- public boolean stream_open()
- public array stream_stat()
- public array url_stat()
- public void stream_read()
- public boolean stream_write()
- public integer stream_tell()
- public boolean stream_eof()
- public boolean stream_seek()
- public boolean stream_flush()
Members
protected
- $currentString
—
string
The current string - $len
—
string
Length of the string - $mode
—
string
The mode - $openedPath
—
string
Enter description here ... - $options
—
string
Enter description here ... - $path
—
string
The path - $pos
—
integer
Current position - $stat
—
array
Statistics for a file
Methods
public
- stream_eof() — End of field check
- stream_flush() — Stream flush, always returns true.
- stream_open() — Method to open a file or URL.
- stream_read() — Method to read a given number of bytes starting at the current position and moving to the end of the string defined by the current position plus the given number.
- stream_seek() — Stream offset
- stream_stat() — Method to retrieve information from a file resource
- stream_tell() — Method to get the current position
- stream_write() — Stream write, always returning false.
- url_stat() — Method to retrieve information about a file.