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

io.github.vmzakharov.ecdataframe.util.CollectingPrinter Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.github.vmzakharov.ecdataframe.util;

public class CollectingPrinter
implements Printer
{
    private final StringBuilder buffer = new StringBuilder();

    @Override
    public void print(String value)
    {
        this.buffer.append(value);
    }

    public String toString()
    {
        return this.buffer.toString();
    }

    public void clear()
    {
        this.buffer.setLength(0);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy