All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.digdag.spi.CommandLogger Maven / Gradle / Ivy

There is a newer version: 0.10.5.1
Show newest version
package io.digdag.spi;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface CommandLogger
{
    default void copyStdout(Process p, OutputStream copy)
        throws IOException
    {
        try (InputStream in = p.getInputStream()) {
            copy(in, copy);
        }
    }

    void copy(InputStream in, OutputStream copy)
        throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy