org.modeshape.jcr.text

## Class TextExtractorOutput

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `TextExtractorOutput()`
    `TextExtractorOutput(String separator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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()

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