mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
mimeType(ZLFile)
This commit is contained in:
parent
13daebdc85
commit
ba1ad02638
1 changed files with 10 additions and 0 deletions
|
@ -61,4 +61,14 @@ public class FileTypeCollection {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public MimeType mimeType(ZLFile file) {
|
||||
for (FileType type : types()) {
|
||||
final MimeType mime = type.mimeType(file);
|
||||
if (mime != MimeType.NULL) {
|
||||
return mime;
|
||||
}
|
||||
}
|
||||
return MimeType.NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue