|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 /** 00012 * An abstract means of reading data. 00013 * Classes implementing this interface may use a subsystem which requires less 00014 * memory than working with large strings of data. 00015 * @package Swift 00016 * @subpackage ByteStream 00017 * @author Chris Corbyn 00018 */ 00019 interface Swift_OutputByteStream 00020 { 00021 00022 /** 00023 * Reads $length bytes from the stream into a string and moves the pointer 00024 * through the stream by $length. If less bytes exist than are requested the 00025 * remaining bytes are given instead. If no bytes are remaining at all, boolean 00026 * false is returned. 00027 * @param int $length 00028 * @return string 00029 * @throws Swift_IoException 00030 */ 00031 public function read($length); 00032 00033 /** 00034 * Move the internal read pointer to $byteOffset in the stream. 00035 * @param int $byteOffset 00036 * @return boolean 00037 * @throws Swift_IoException 00038 */ 00039 public function setReadPointer($byteOffset); 00040 00041 }
1.8.0