summaryrefslogtreecommitdiffstats
path: root/wp-includes/streams.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/streams.php')
-rw-r--r--wp-includes/streams.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/wp-includes/streams.php b/wp-includes/streams.php
index 8cf1c48..b68fa32 100644
--- a/wp-includes/streams.php
+++ b/wp-includes/streams.php
@@ -1,5 +1,11 @@
<?php
-/*
+/**
+ * PHP-Gettext External Library: StreamReader classes
+ *
+ * @package External
+ * @subpackage PHP-gettext
+ *
+ * @internal
Copyright (c) 2003, 2005 Danilo Segan <danilo@kvota.net>.
This file is part of PHP-gettext.
@@ -18,7 +24,7 @@
along with PHP-gettext; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+ */
// Simple class to wrap file streams, string streams, etc.
@@ -28,17 +34,17 @@ class StreamReader {
function read($bytes) {
return false;
}
-
+
// should return new position
function seekto($position) {
return false;
}
-
+
// returns current position
function currentpos() {
return false;
}
-
+
// returns length of entire stream (limit for seekto()s)
function length() {
return false;
@@ -114,7 +120,7 @@ class FileReader {
$bytes -= strlen($chunk);
}
$this->_pos = ftell($this->_fd);
-
+
return $data;
} else return '';
}
@@ -139,7 +145,7 @@ class FileReader {
}
-// Preloads entire file in memory first, then creates a StringReader
+// Preloads entire file in memory first, then creates a StringReader
// over it (it assumes knowledge of StringReader internals)
class CachedFileReader extends StringReader {
function CachedFileReader($filename) {