Swift_KeyCache_KeyCacheInputStream
extends
Swift_InputByteStream
in
Writes data to a KeyCache using a stream.
Tags
Table of Contents
- __clone() : mixed
- Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.
- bind() : mixed
- Attach $is to this stream.
- commit() : mixed
- For any bytes that are currently buffered inside the stream, force them off the buffer.
- flushBuffers() : mixed
- Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
- setItemKey() : mixed
- Set the itemKey which will be written to.
- setKeyCache() : mixed
- Set the KeyCache to wrap.
- setNsKey() : mixed
- Set the nsKey which will be written to.
- setWriteThroughStream() : mixed
- Specify a stream to write through for each write().
- unbind() : mixed
- Remove an already bound stream.
- write() : int
- Writes $bytes to the end of the stream.
Methods
__clone()
Any implementation should be cloneable, allowing the clone to access a separate $nsKey and $itemKey.
public
__clone() : mixed
Return values
mixed —bind()
Attach $is to this stream.
public
bind(Swift_InputByteStream $is) : mixed
The stream acts as an observer, receiving all data that is written. All and operations will be mirrored.
Parameters
- $is : Swift_InputByteStream
Return values
mixed —commit()
For any bytes that are currently buffered inside the stream, force them off the buffer.
public
commit() : mixed
Tags
Return values
mixed —flushBuffers()
Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
public
flushBuffers() : mixed
Tags
Return values
mixed —setItemKey()
Set the itemKey which will be written to.
public
setItemKey(string $itemKey) : mixed
Parameters
- $itemKey : string
Return values
mixed —setKeyCache()
Set the KeyCache to wrap.
public
setKeyCache(Swift_KeyCache $keyCache) : mixed
Parameters
- $keyCache : Swift_KeyCache
Return values
mixed —setNsKey()
Set the nsKey which will be written to.
public
setNsKey(string $nsKey) : mixed
Parameters
- $nsKey : string
Return values
mixed —setWriteThroughStream()
Specify a stream to write through for each write().
public
setWriteThroughStream(Swift_InputByteStream $is) : mixed
Parameters
- $is : Swift_InputByteStream
Return values
mixed —unbind()
Remove an already bound stream.
public
unbind(Swift_InputByteStream $is) : mixed
If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.
Parameters
- $is : Swift_InputByteStream
Return values
mixed —write()
Writes $bytes to the end of the stream.
public
write(string $bytes) : int
Writing may not happen immediately if the stream chooses to buffer. If you want to write these bytes with immediate effect, call after calling write().
This method returns the sequence ID of the write (i.e. 1 for first, 2 for second, etc etc).
Parameters
- $bytes : string