Ejemplo n.º 1
0
  public static Field getFile(String field, File file, String fileExt) throws IOException {

    LuceneFileExtractor fileExtractor =
        (LuceneFileExtractor) InstancePool.get(PropsValues.LUCENE_FILE_EXTRACTOR);

    return fileExtractor.getFile(field, file, fileExt);
  }
Ejemplo n.º 2
0
  public static Field getFile(String field, byte[] bytes, String fileExt) {
    LuceneFileExtractor fileExtractor =
        (LuceneFileExtractor) InstancePool.get(PropsValues.LUCENE_FILE_EXTRACTOR);

    return fileExtractor.getFile(field, bytes, fileExt);
  }