1<?php
2class FetchedDataFile extends FetchedDataHTML {
3  var $content;
4  var $path;
5
6  function FetchedDataFile($content, $path) {
7    $this->content = $content;
8    $this->path    = $path;
9  }
10
11  function detect_encoding() {
12    // First, try to get encoding from META http-equiv tag
13    //
14    $encoding = $this->_detect_encoding_using_meta($this->content);
15
16    // At last, fall back to default encoding
17    //
18    if (is_null($encoding)) { $encoding = "iso-8859-1";  }
19
20    return $encoding;
21  }
22
23  function get_additional_data($key) {
24    return null;
25  }
26
27  function get_content() {
28    return $this->content;
29  }
30
31  function set_content($data) {
32    $this->content = $data;
33  }
34}
35?>