|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mayo.informatics.indexer.api.generators.DocumentFromXMLGenerator
public class DocumentFromXMLGenerator
This class will parse XML into a lucene document. The XML must pass the schema provided in the resources folder.
Constructor Summary | |
---|---|
DocumentFromXMLGenerator(boolean validate)
|
Method Summary | |
---|---|
org.apache.lucene.document.Document |
create(java.io.File file)
Creates an indexer ready document from an xml file on disk. |
org.apache.lucene.document.Document |
create(org.xml.sax.InputSource source)
Creates a indexer ready document from an InputSource (probably a stream) |
org.apache.lucene.document.Document |
create(java.lang.String fileLocation)
Creates an indexer ready document from a file whos located at fileLocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentFromXMLGenerator(boolean validate) throws InternalErrorException
InternalErrorException
Method Detail |
---|
public org.apache.lucene.document.Document create(java.io.File file) throws java.io.FileNotFoundException, ParsingException, ReadingException
file
- The file to index.
java.io.FileNotFoundException
ParsingException
ReadingException
public org.apache.lucene.document.Document create(java.lang.String fileLocation) throws java.io.FileNotFoundException, ParsingException, ReadingException
fileLocation
- Where to read the file from
java.io.FileNotFoundException
ParsingException
ReadingException
public org.apache.lucene.document.Document create(org.xml.sax.InputSource source) throws ParsingException, ReadingException
source
- The source to index
ParsingException
ReadingException
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |