public synchronized List<MetExtractorSpec> getExtractorSpecsForFile(File file) throws IOException { String mimeType = this.mimeRepo.getMimeType(file); if (mimeType == null && magic) { mimeType = this.mimeRepo.getMimeTypeByMagic( MimeTypeUtils.readMagicHeader(new FileInputStream(file))); } return this.getExtractorSpecsForMimeType(mimeType); }
public String getMimeType(File file) { return mimeRepo.getMimeType(file); }