Package com.day.util.diff
Class WordsElementsFactory
- java.lang.Object
-
- com.day.util.diff.WordsElementsFactory
-
- All Implemented Interfaces:
ElementsFactory
public class WordsElementsFactory extends java.lang.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
-
Field Summary
-
Fields inherited from interface com.day.util.diff.ElementsFactory
CVS_ID
-
-
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, java.io.Reader text)
static WordsElementsFactory
create(DocumentSource source, java.lang.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, java.lang.String text)
-
create
public static WordsElementsFactory create(DocumentSource source, java.io.Reader text) throws java.io.IOException
- Throws:
java.io.IOException
-
-