ModeShape Distribution 3.0.0.Beta4

org.modeshape.jcr.text
Class TextExtractorOutput

java.lang.Object
  extended by org.modeshape.jcr.text.TextExtractorOutput
All Implemented Interfaces:
TextExtractor.Output

public final class TextExtractorOutput
extends Object
implements TextExtractor.Output

A TextExtractor.Output implementation which appends each incoming text into a buffer, separating the content via the configured separator.


Constructor Summary
TextExtractorOutput()
           
TextExtractorOutput(String separator)
           
 
Method Summary
 String getText()
           
 void recordText(String text)
          Record the text as being extracted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextExtractorOutput

public TextExtractorOutput()

TextExtractorOutput

public TextExtractorOutput(String separator)
Method Detail

recordText

public void recordText(String text)
Description copied from interface: TextExtractor.Output
Record the text as being extracted. This method can be called multiple times during a single extract.

Specified by:
recordText in interface TextExtractor.Output
Parameters:
text - the text extracted from the content.

getText

public String getText()

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.