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

com.github.powerlibraries.io.helper.OutputStreamWrapper Maven / Gradle / Ivy

package com.github.powerlibraries.io.helper;

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

/**This class is a simple functional interface used to wrap an OutputStream with another. Instead of implementing this 
 * interface it is often enough to use a constructor, e.g. BufferedOutputStream::new.
 * 
 * @author Manuel Hegner
 */
public interface OutputStreamWrapper {
	
	/**
	 * This method should wrap the given OutputStream out with another OutputStream (e.g. compression) and it.
	 * @param out the stream given
	 * @return a wrapped OutputStream
	 * @throws IOException thrown by some OutputStream constructos
	 */
	public OutputStream wrap(OutputStream out) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy