1 | <?php |
||
19 | class PictureFrameReader extends StreamContainer |
||
20 | { |
||
21 | /** |
||
22 | * @var CharsetFilter |
||
23 | */ |
||
24 | private $charsetFilter; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $encoding; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $mimeType; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | private $type; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $description; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $data; |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function __construct(Stream $stream) |
||
60 | |||
61 | /** |
||
62 | * Read encoding. |
||
63 | * |
||
64 | * @return int |
||
65 | */ |
||
66 | protected function readEncoding() |
||
72 | |||
73 | /** |
||
74 | * Get encoding. |
||
75 | * |
||
76 | * @return int |
||
77 | */ |
||
78 | public function getEncoding() |
||
86 | |||
87 | /** |
||
88 | * Read mime type. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | protected function readMimeType() |
||
108 | |||
109 | /** |
||
110 | * Get mime type. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getMimeType() |
||
122 | |||
123 | /** |
||
124 | * Get type. |
||
125 | * |
||
126 | * @return int |
||
127 | */ |
||
128 | protected function readType() |
||
134 | |||
135 | /** |
||
136 | * Get type. |
||
137 | * |
||
138 | * @return int |
||
139 | */ |
||
140 | public function getType() |
||
148 | |||
149 | /** |
||
150 | * Read description. |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | protected function readDescription() |
||
170 | |||
171 | /** |
||
172 | * Get description. |
||
173 | * |
||
174 | * @return string |
||
175 | */ |
||
176 | public function getDescription() |
||
184 | |||
185 | /** |
||
186 | * Read data. |
||
187 | * |
||
188 | * @return string |
||
189 | */ |
||
190 | protected function readData() |
||
197 | |||
198 | /** |
||
199 | * Get data. |
||
200 | * |
||
201 | * @return string |
||
202 | */ |
||
203 | public function getData() |
||
211 | } |
||
212 |