()
| 183 | } |
| 184 | |
| 185 | public InputStream getInputStream() throws IOException { |
| 186 | if (this.file != null) { |
| 187 | return new FileInputStream(this.file); |
| 188 | } |
| 189 | |
| 190 | if (this.zipEntry != null) { |
| 191 | return this.theme.getZip().getInputStream(this.zipEntry); |
| 192 | } |
| 193 | |
| 194 | if (this.url != null) { |
| 195 | return this.url.openStream(); |
| 196 | } |
| 197 | |
| 198 | throw new FileNotFoundException(this.name); |
| 199 | } |
| 200 | |
| 201 | public String toString() { |
| 202 | return this.name; |