예제 #1
0
 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);
 }
예제 #2
0
 public String getMimeType(File file) {
   return mimeRepo.getMimeType(file);
 }