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

com.github.powerlibraries.io.builder.targets.OutputStreamTarget Maven / Gradle / Ivy

package com.github.powerlibraries.io.builder.targets;

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

/**
 * This class represents an OutputStream as the target. This makes the builder non-reusable.
 * @author Manuel Hegner
 *
 */
public class OutputStreamTarget implements Target {

	private OutputStream output;

	public OutputStreamTarget(OutputStream input) {
		this.output=input;
	}
	
	@Override
	public OutputStream openStream() throws IOException {
		return output;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy