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

org.etlunit.io.CustomPumpStreamHandler Maven / Gradle / Ivy

There is a newer version: 1.6.9
Show newest version
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