io.github.vmzakharov.ecdataframe.util.PrinterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataframe-ec Show documentation
Show all versions of dataframe-ec Show documentation
A tabular data structure based on the Eclipse Collections framework
package io.github.vmzakharov.ecdataframe.util;
final public class PrinterFactory
{
static private Printer printer = new SysOutPrinter();
static private Printer errPrinter = new SysErrPrinter();
private PrinterFactory()
{
// Utility class
}
public static Printer getPrinter()
{
return printer;
}
public static void setPrinter(Printer newPrinter)
{
printer = newPrinter;
}
public static Printer getErrPrinter()
{
return errPrinter;
}
public static void setErrPrinter(Printer newPrinter)
{
errPrinter = newPrinter;
}
}