Class Swift_Cache_OutputStream

Description

The wraps the streaming functionality of the cache

Located in /Swift/Cache/OutputStream.php (line 16)


	
			
Direct descendents
Class Description
Swift_Cache_JointOutputStream Makes multiple output streams act as one super sream
Variable Summary
Method Summary
Swift_Cache_OutputStream __construct (Swift_Cache $cache, string $key)
string read ([int $size = null])
string readFull ()
Variables
Swift_Cache $cache (line 27)

The cache object to read

  • access: protected
string $key (line 22)

The key to read in the actual cache

  • access: protected
Methods
Constructor __construct (line 34)

Ctor.

  • access: public
Swift_Cache_OutputStream __construct (Swift_Cache $cache, string $key)
  • Swift_Cache $cache: The cache to read from
  • string $key: The key for the cached data

Redefined in descendants as:
read (line 45)

Read bytes from the cache and seek through the buffer

Returns false if EOF is reached

  • return: The read bytes
  • access: public
string read ([int $size = null])
  • int $size: The number of bytes to read (could be ignored)

Redefined in descendants as:
readFull (line 53)

Read the entire cached data as one string

  • access: public
string readFull ()

Documentation generated on Wed, 26 Mar 2008 20:33:10 +1100 by phpDocumentor 1.3.1