Skip to content

Commit 0e55473

Browse files
author
mgeipel
committed
fixed #55
1 parent 29354c7 commit 0e55473

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/culturegraph/mf/stream/pipe/Splitter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.culturegraph.mf.stream.pipe;
1717

18+
import java.io.Reader;
1819
import java.util.HashMap;
1920
import java.util.Map;
2021

@@ -47,6 +48,11 @@ public Splitter(final String morphDef) {
4748
metamorph.setReceiver(singleValue);
4849
}
4950

51+
public Splitter(final Reader morphDef) {
52+
metamorph = new Metamorph(morphDef);
53+
metamorph.setReceiver(singleValue);
54+
}
55+
5056
public Splitter(final Metamorph metamorph) {
5157
this.metamorph = metamorph;
5258
metamorph.setReceiver(singleValue);

0 commit comments

Comments
 (0)