org.etlunit.io.CustomPumpStreamHandler Maven / Gradle / Ivy
package org.etlunit.io;
import org.apache.commons.exec.PumpStreamHandler;
import java.io.InputStream;
import java.io.OutputStream;
public class CustomPumpStreamHandler extends PumpStreamHandler
{
public CustomPumpStreamHandler(OutputStream processStandardOutputWriter)
{
super(processStandardOutputWriter, processStandardOutputWriter, null);
}
@Override
protected Thread createPump(InputStream is, OutputStream os)
{
// always auto-close streams
return createPump(is, os, true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy