|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.regain.crawler.document.AbstractPreparator
net.sf.regain.crawler.preparator.SwingRtfPreparator
public class SwingRtfPreparator
Präpariert ein RTF-Dokument für die Indizierung. Dazu wird der RTF-Parser von Swing genutzt.
Dabei werden die Rohdaten des Dokuments von Formatierungsinformation befreit.
Field Summary | |
---|---|
private RTFEditorKit |
mRTFEditorKit
Das RTFEditorKit, das zum laden von RTF-Dokumenten verwendet wird. |
Fields inherited from interface net.sf.regain.crawler.document.Preparator |
---|
DEFAULT_BUFFER_SIZE |
Constructor Summary | |
---|---|
SwingRtfPreparator()
Creates a new instance of SwingRtfPreparator. |
Method Summary | |
---|---|
void |
close()
Frees all resources reserved by the preparator. |
void |
prepare(RawDocument rawDocument)
Präpariert ein Dokument für die Indizierung. |
Methods inherited from class net.sf.regain.crawler.document.AbstractPreparator |
---|
accepts, addAdditionalField, cleanUp, concatenateStringParts, getAdditionalFields, getCleanedContent, getCleanedMetaData, getHeadlines, getPath, getPriority, getSummary, getTitle, init, setCleanedContent, setCleanedMetaData, setHeadlines, setPath, setPriority, setSummary, setTitle, setUrlRegex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RTFEditorKit mRTFEditorKit
Constructor Detail |
---|
public SwingRtfPreparator() throws RegainException
RegainException
- If creating the preparator failed.Method Detail |
---|
public void prepare(RawDocument rawDocument) throws RegainException
rawDocument
- Das zu pr�pariernde Dokument.
RegainException
- Wenn die Pr�paration fehl schlug.public void close() throws RegainException
Is called at the end of the crawler process after all documents were processed.
close
in interface Preparator
close
in class AbstractPreparator
RegainException
- If freeing the resources failed.
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |