Package org.springmodules.lucene.index.document.handler

Examples of org.springmodules.lucene.index.document.handler.DocumentHandler


   *
   * @param file the file to use
   * @return the corresponding document handler
   */
  private DocumentHandler doGetDocumentHandler(File file) {
    DocumentHandler handler = null;
    try {
      handler = getDocumentHandler(file.getPath());
    } catch(Exception ex) {
    }
    return handler;
View Full Code Here


   * @see DocumentHandlerManager#getDocumentHandler(String)
   * @see DocumentHandler#getDocument(Map, InputStream)
   * @see org.springmodules.lucene.index.DocumentHandlerException
   */
  public final Document createDocument() throws Exception {
    DocumentHandler documentHandler = documentHandlerManager.getDocumentHandler(name);
    return documentHandler.getDocument(null, object);
  }
View Full Code Here

   * @see DocumentHandler#getDocument(Map, InputStream)
   * @see FileExtensionNotSupportedException
   */
  public final Document createDocumentFromInputStream(
                            InputStream inputStream) throws Exception {
    DocumentHandler documentHandler = documentHandlerManager.getDocumentHandler(getResourceName());
    if( documentHandler!=null ) {
      Document document = documentHandler.getDocument(getResourceDescription(), inputStream);
      addFields(document);
      return document;
    } else {
      throw new FileExtensionNotSupportedException("No handler for this resource name");
    }
View Full Code Here

TOP

Related Classes of org.springmodules.lucene.index.document.handler.DocumentHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.