-
Notifications
You must be signed in to change notification settings - Fork 15
Mahmoud Ben Hassine edited this page Oct 13, 2015
·
4 revisions
Replaces patterns with expressions in a stream of Strings.
Name | Type | Mandatory | Default |
---|---|---|---|
regexp | String | Yes | N/A |
replacement | String | Yes | N/A |
Stream<String> stream = Stream.of("a", "ab");
UStream.unixify(stream)
.tr("a", "b")
.to(stdOut()); // prints "b", "bb"
// Or
UStream.from(stream)
.pipe(tr("a", "b"))
.to(stdOut()); // prints "b", "bb"
UnixStream is created with passion by Mahmoud Ben Hassine