Class WordsElementsFactory
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.diff.WordsElementsFactory
-
- All Implemented Interfaces:
ElementsFactory
public class WordsElementsFactory extends Object implements ElementsFactory
Implements an element factory that creates the elements out from words of the given input stream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWordsElementsFactory.WordElement
-
Constructor Summary
Constructors Constructor Description WordsElementsFactory(Document.Element[] elements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WordsElementsFactorycreate(DocumentSource source, Reader text)static WordsElementsFactorycreate(DocumentSource source, String text)Document.Element[]getElements()Provides the elements
-
-
-
Constructor Detail
-
WordsElementsFactory
public WordsElementsFactory(Document.Element[] elements)
-
-
Method Detail
-
getElements
public Document.Element[] getElements()
Description copied from interface:ElementsFactoryProvides the elements- Specified by:
getElementsin interfaceElementsFactory- Returns:
- an array of elements
-
create
public static WordsElementsFactory create(DocumentSource source, String text)
-
create
public static WordsElementsFactory create(DocumentSource source, Reader text) throws IOException
- Throws:
IOException
-
-