-
Notifications
You must be signed in to change notification settings - Fork 15
str
Mahmoud Ben Hassine edited this page Oct 9, 2015
·
4 revisions
Transforms a stream of objects into a stream of Strings by calling toString
on each object.
N/A
Stream<String> stream = Stream.of(1, 2);
XStream.unixify(stream)
.str()
.to(stdOut()); // prints "1", "2"
// Or
XStream.from(stream)
.pipe(str())
.to(stdOut()); // prints "1", "2"
UnixStream is created with passion by Mahmoud Ben Hassine