com.softicar.platform.common.io.writer.PrintWriterFactory 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.File;
import java.io.PrintWriter;
import java.io.Writer;
/**
* This class simplifies the creation of a {@link PrintWriter}.
*
* @author Oliver Richers
*/
public class PrintWriterFactory {
public static PrintWriter print(Writer writer) {
return new PrintWriter(writer);
}
public static PrintWriter printUtf8(File file) {
return new PrintWriter(BufferedWriterFactory.writeUtf8(file));
}
}