Class Streams
java.lang.Object
org.apache.sling.scripting.sightly.impl.compiler.util.stream.Streams
Utility functions for streams.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconnect(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 CommandStreammap(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
-