\Swift_KeyCache_SimpleKeyCacheInputStream
Writes data to a KeyCache using a stream.
- Author: Chris Corbyn
Synopsis
class Swift_KeyCache_SimpleKeyCacheInputStream
implements
Swift_KeyCache_KeyCacheInputStream
{
- // members
- private $_keyCache;
- private $_nsKey;
- private $_itemKey;
- private $_writeThrough;
- // methods
- public void setKeyCache()
- public void setWriteThroughStream()
- public void write()
- public void commit()
- public void bind()
- public void unbind()
- public void flushBuffers()
- public void setNsKey()
- public void setItemKey()
- public void __clone()
Hierarchy
Implements
Members
private
-
$_itemKey
The itemKey of the KeyCache being written to -
$_keyCache
The KeyCache being written to -
$_nsKey
The nsKey of the KeyCache being written to -
$_writeThrough
A stream to write through on each write()
Methods
public
- __clone() — Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.
- bind() — Not used.
- commit() — Not used.
- flushBuffers() — Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
- setItemKey() — Set the itemKey which will be written to.
- setKeyCache() — Set the KeyCache to wrap.
- setNsKey() — Set the nsKey which will be written to.
- setWriteThroughStream() — Specify a stream to write through for each write().
- unbind() — Not used.
- write() — Writes $bytes to the end of the stream.