Class TeeOutput

  • All Implemented Interfaces:
    Output

    public final class TeeOutput
    extends Object
    implements Output
    Output to Output copying pipe.

    There is no thread-safety guarantee.

    Since:
    0.16
    • Constructor Detail

      • TeeOutput

        public TeeOutput​(Output tgt,
                         Writer cpy,
                         Charset charset)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
        charset - The charset
      • TeeOutput

        public TeeOutput​(Output tgt,
                         Writer cpy)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
      • TeeOutput

        public TeeOutput​(Output tgt,
                         Path cpy)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
      • TeeOutput

        public TeeOutput​(Output tgt,
                         File cpy)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
      • TeeOutput

        public TeeOutput​(Output tgt,
                         OutputStream cpy)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
      • TeeOutput

        public TeeOutput​(Output tgt,
                         Output cpy)
        Ctor.
        Parameters:
        tgt - The target
        cpy - The copy destination
    • Method Detail

      • stream

        public OutputStream stream()
                            throws Exception
        Description copied from interface: Output
        Get write access to it.
        Specified by:
        stream in interface Output
        Returns:
        OutputStream to write to
        Throws:
        Exception - If something goes wrong