Class LoggingOutput

  • All Implemented Interfaces:
    Output

    public final class LoggingOutput
    extends Object
    implements Output
    Logged output.

    There is no thread-safety guarantee.

    Since:
    0.29
    • Constructor Detail

      • LoggingOutput

        public LoggingOutput​(Output output,
                             String dst)
        Ctor.
        Parameters:
        output - Data output
        dst - The name of destination data
      • LoggingOutput

        public LoggingOutput​(Output output,
                             String dst,
                             Logger lgr)
        Ctor.
        Parameters:
        output - Data output
        dst - The name of destination data
        lgr - Message logger
    • 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