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 class
WordsElementsFactory.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 WordsElementsFactory
create(DocumentSource source, Reader text)
static WordsElementsFactory
create(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:ElementsFactory
Provides the elements- Specified by:
getElements
in 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
-
-