org.umber.core.text.splitters
Class ParagraphSplitter

java.lang.Object
  extended byorg.umber.core.text.splitters.ParagraphSplitter
All Implemented Interfaces:
ITextSplitter

public class ParagraphSplitter
extends java.lang.Object
implements ITextSplitter

Text splitter which divides text content into paragraphs delimited by one or more blank (whitespace-only) lines.

Author:
jsheets

Constructor Summary
ParagraphSplitter()
           
 
Method Summary
 java.lang.String[] splitText(java.lang.String text)
          Extracts fragments of text from the input text document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphSplitter

public ParagraphSplitter()
Method Detail

splitText

public java.lang.String[] splitText(java.lang.String text)
Extracts fragments of text from the input text document.

This implementation breaks text along paragraph boundaries.

Specified by:
splitText in interface ITextSplitter
Parameters:
text - input text document
Returns:
extracted text fragments