Class Streams
- java.lang.Object
-
- org.apache.sling.scripting.sightly.impl.compiler.util.stream.Streams
-
public class Streams extends Object
Utility functions for streams.
-
-
Constructor Summary
Constructors Constructor Description Streams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
connect(CommandStream inStream, PushStream outStream, CommandVisitor visitor)
Attach the visitor as a handle to the inStream and propagate the done signal from the inStream to the outStreamstatic CommandStream
map(CommandStream inStream, EmitterVisitor emitterVisitor)
Attach the emitting visitor to the inStream.
-
-
-
Method Detail
-
connect
public static void connect(CommandStream inStream, PushStream outStream, CommandVisitor visitor)
Attach the visitor as a handle to the inStream and propagate the done signal from the inStream to the outStream- Parameters:
inStream
- - the input streamoutStream
- - the output streamvisitor
- - a command visitor
-
map
public static CommandStream map(CommandStream inStream, EmitterVisitor emitterVisitor)
Attach the emitting visitor to the inStream.- Parameters:
inStream
- - the input streamemitterVisitor
- - the emitter visitor- Returns:
- - the output stream of the emitter
-
-