Class Streams
java.lang.Object
org.apache.sling.scripting.sightly.impl.compiler.util.stream.Streams
Utility functions for streams.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
connect
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
Attach the emitting visitor to the inStream.- Parameters:
inStream
- - the input streamemitterVisitor
- - the emitter visitor- Returns:
- - the output stream of the emitter
-