Package org.oddjob.io

Class TeeType

java.lang.Object
org.oddjob.io.TeeType
All Implemented Interfaces:
ArooaValue, ArooaSessionAware

public class TeeType extends Object implements ArooaValue, ArooaSessionAware

Description

Split output to multiple other outputs.

Example

Copy a buffer to stdout, the log, and to a file.
<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>
Copy data to stdout as it is being read during a copy from one buffer to another.
<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>