com.softicar.platform.common.io.writer.BufferedWriterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.io.writer;
import java.io.BufferedWriter;
import java.io.File;
import java.io.Writer;
/**
* A static factory for {@link BufferedWriter}.
*
* @author Oliver Richers
*/
public class BufferedWriterFactory {
public static BufferedWriter write(Writer writer) {
return new BufferedWriter(writer);
}
public static BufferedWriter writeUtf8(File file) {
return new BufferedWriter(OutputStreamWriterFactory.writeUtf8(file));
}
}