| 1 | <?php |
||
| 17 | class TextInformationFrame |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The ISO-8859-1 encoding. |
||
| 21 | */ |
||
| 22 | const ISO88591 = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The UTF-16 Unicode encoding with BOM. |
||
| 26 | * */ |
||
| 27 | const UTF16 = 1; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The UTF-16BE Unicode encoding without BOM. |
||
| 31 | */ |
||
| 32 | const UTF16BE = 2; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The UTF-8 Unicode encoding. |
||
| 36 | */ |
||
| 37 | const UTF8 = 3; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The UTF-16LE Unicode encoding without BOM. |
||
| 41 | * */ |
||
| 42 | const UTF16LE = 4; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var Stream |
||
| 46 | */ |
||
| 47 | protected $stream; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var int |
||
| 51 | */ |
||
| 52 | protected $version; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Create ID3v2 header metadata object. |
||
| 56 | * |
||
| 57 | * @param Stream $stream |
||
| 58 | * @param int $version |
||
| 59 | */ |
||
| 60 | public function __construct(Stream $stream, $version) |
||
| 65 | |||
| 66 | public function readTextEncoding() |
||
| 70 | |||
| 71 | public function readInformation($textEncoding) |
||
| 86 | } |
||
| 87 |