railo.runtime.search.lucene2
Class DocumentUtil

java.lang.Object
  extended by railo.runtime.search.lucene2.DocumentUtil

public final class DocumentUtil
extends Object

creates a matching Document Object to given File


Constructor Summary
DocumentUtil()
           
 
Method Summary
static org.apache.lucene.document.Document toDocument(Resource file, String url, String charset)
          translate the file to a Document Object
static org.apache.lucene.document.Document toDocument(StringBuffer content, String root, URL url, HTTPResponse method)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentUtil

public DocumentUtil()
Method Detail

toDocument

public static org.apache.lucene.document.Document toDocument(StringBuffer content,
                                                             String root,
                                                             URL url,
                                                             HTTPResponse method)
                                                      throws IOException
Throws:
IOException

toDocument

public static org.apache.lucene.document.Document toDocument(Resource file,
                                                             String url,
                                                             String charset)
                                                      throws IOException
translate the file to a Document Object

Parameters:
file -
Returns:
Throws:
InterruptedException
IOException


Copyright © 2012 Railo