Source for file streams.class.php
Documentation is available at streams.class.php
* This file is part of PHP-gettext.
* PHP-gettext is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* PHP-gettext is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with PHP-gettext; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* @copyright © 2004-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: streams.class.php,v 1.6 2006/07/15 12:00:44 tokul Exp $
* Class that is used to read .mo files.
* Current position in file
* reads translation file and fills translation input object properties
* @param string $filename path to file
* @return boolean false there is a problem with $filename
// disable stat warnings for unreadable directories
$this->error =
3; // Cannot read file, probably permissions
$this->error =
2; // File doesn't exist
* reads data from current position
* @param integer $bytes number of bytes to read
* @return string read data
* Moves to defined position in a file
* @param integer $pos position
* @return integer current position
* return current position
* @return integer current position
* @return integer file length
Documentation generated on Sat, 07 Oct 2006 16:13:47 +0300 by phpDocumentor 1.3.0RC6