1: <?php
2:
3: /*
4: * This file is part of SwiftMailer.
5: * (c) 2004-2009 Chris Corbyn
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: /**
12: * Writes data to a KeyCache using a stream.
13: * @package Swift
14: * @subpackage KeyCache
15: * @author Chris Corbyn
16: */
17: interface Swift_KeyCache_KeyCacheInputStream extends Swift_InputByteStream
18: {
19: /**
20: * Set the KeyCache to wrap.
21: * @param Swift_KeyCache $keyCache
22: */
23: public function setKeyCache(Swift_KeyCache $keyCache);
24:
25: /**
26: * Set the nsKey which will be written to.
27: * @param string $nsKey
28: */
29: public function setNsKey($nsKey);
30:
31: /**
32: * Set the itemKey which will be written to.
33: * @param string $itemKey
34: */
35: public function setItemKey($itemKey);
36:
37: /**
38: * Specify a stream to write through for each write().
39: * @param Swift_InputByteStream $is
40: */
41: public function setWriteThroughStream(Swift_InputByteStream $is);
42:
43: /**
44: * Any implementation should be cloneable, allowing the clone to access a
45: * separate $nsKey and $itemKey.
46: */
47: public function __clone();
48: }
49: