4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 //@require 'Swift/KeyCache.php';
12 //@require 'Swift/InputByteStream.php';
15 * Writes data to a KeyCache using a stream.
17 * @subpackage KeyCache
18 * @author Chris Corbyn
20 interface Swift_KeyCache_KeyCacheInputStream
extends Swift_InputByteStream
24 * Set the KeyCache to wrap.
25 * @param Swift_KeyCache $keyCache
27 public function setKeyCache(Swift_KeyCache
$keyCache);
30 * Set the nsKey which will be written to.
31 * @param string $nsKey
33 public function setNsKey($nsKey);
36 * Set the itemKey which will be written to.
37 * @param string $itemKey
39 public function setItemKey($itemKey);
42 * Specify a stream to write through for each write().
43 * @param Swift_InputByteStream $is
45 public function setWriteThroughStream(Swift_InputByteStream
$is);
48 * Any implementation should be cloneable, allowing the clone to access a
49 * separate $nsKey and $itemKey.
51 public function __clone();