示例#1
0
  /**
   * Gets the file.
   *
   * @param field the field
   * @param file the file
   * @param fileExt the file ext
   * @return the file
   * @throws IOException Signals that an I/O exception has occurred.
   */
  public static Field getFile(String field, File file, String fileExt) throws IOException {

    SolrFileExtractor fileExtractor = new SolrFileExtractor();

    return fileExtractor.getFile(field, file, fileExt);
  }
示例#2
0
  /**
   * Gets the file.
   *
   * @param field the field
   * @param is the is
   * @param fileExt the file ext
   * @return the file
   */
  public static Field getFile(String field, InputStream is, String fileExt) {
    SolrFileExtractor fileExtractor = new SolrFileExtractor();

    return fileExtractor.getFile(field, is, fileExt);
  }
示例#3
0
  /**
   * Gets the file.
   *
   * @param field the field
   * @param bytes the bytes
   * @param fileExt the file ext
   * @return the file
   */
  public static Field getFile(String field, byte[] bytes, String fileExt) {
    SolrFileExtractor fileExtractor = new SolrFileExtractor();

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