PHP Class Swift_KeyCache_SimpleKeyCacheInputStream, Halite

Author: Chris Corbyn
Inheritance: implements Swift_KeyCache_KeyCacheInputStream
Mostra file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__clone ( ) Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.
bind ( Swift_InputByteStream $is ) Not used.
commit ( ) Not used.
flushBuffers ( ) Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
setItemKey ( string $itemKey ) Set the itemKey which will be written to.
setKeyCache ( Swift_KeyCache $keyCache ) Set the KeyCache to wrap.
setNsKey ( string $nsKey ) Set the nsKey which will be written to.
setWriteThroughStream ( Swift_InputByteStream $is ) Specify a stream to write through for each write().
unbind ( Swift_InputByteStream $is ) Not used.
write ( string $bytes, Swift_InputByteStream $is = null ) Writes $bytes to the end of the stream.

Method Details

__clone() public method

Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.
public __clone ( )

bind() public method

Not used.
public bind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

commit() public method

Not used.
public commit ( )

flushBuffers() public method

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
public flushBuffers ( )

setItemKey() public method

Set the itemKey which will be written to.
public setItemKey ( string $itemKey )
$itemKey string

setKeyCache() public method

Set the KeyCache to wrap.
public setKeyCache ( Swift_KeyCache $keyCache )
$keyCache Swift_KeyCache

setNsKey() public method

Set the nsKey which will be written to.
public setNsKey ( string $nsKey )
$nsKey string

setWriteThroughStream() public method

Specify a stream to write through for each write().
public setWriteThroughStream ( Swift_InputByteStream $is )
$is Swift_InputByteStream

unbind() public method

Not used.
public unbind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

write() public method

Writes $bytes to the end of the stream.
public write ( string $bytes, Swift_InputByteStream $is = null )
$bytes string
$is Swift_InputByteStream optional