public class TeeType extends java.lang.Object implements ArooaValue, ArooaSessionAware
<oddjob> <job> <sequential> <jobs> <properties> <values> <value key="work.dir" value="work/io"/> </values> </properties> <copy> <input> <buffer>Duplicate This! </buffer> </input> <output> <tee> <outputs> <stdout/> <logout/> <file file="${work.dir}/TeeTypeTest.txt"/> </outputs> </tee> </output> </copy> </jobs> </sequential> </job> </oddjob>
<oddjob> <job> <copy> <input> <tee> <input> <buffer>This will be copied when read. </buffer> </input> <outputs> <stdout/> </outputs> </tee> </input> <output> <buffer/> </output> </copy> </job> </oddjob>
Modifier and Type | Class and Description |
---|---|
static class |
TeeType.Conversions |
Constructor and Description |
---|
TeeType() |
Modifier and Type | Method and Description |
---|---|
void |
setArooaSession(ArooaSession session)
Accept the current Arooa Session.
|
void |
setInput(ArooaValue input) |
void |
setOutputs(int index,
ArooaValue output) |
java.io.InputStream |
toInputStream() |
java.io.OutputStream |
toOutputStream() |
public void setArooaSession(ArooaSession session)
ArooaSessionAware
setArooaSession
in interface ArooaSessionAware
session
- The Arooa Session. Never null.public void setInput(ArooaValue input)
Property: input
Description: An input stream that will be copied to the outputs.
Required: Only if this type is required to be an input stream.
public void setOutputs(int index, ArooaValue output)
Property: outputs
Description: List of outputs to split to.
Required: No, output will be thrown away if missing.
public java.io.InputStream toInputStream() throws NoConversionAvailableException, ConversionFailedException
public java.io.OutputStream toOutputStream() throws NoConversionAvailableException, ConversionFailedException