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

gg.jte.output.PrintWriterOutput Maven / Gradle / Ivy

There is a newer version: 3.1.12
Show newest version
package gg.jte.output;

import gg.jte.TemplateOutput;

import java.io.PrintWriter;

public class PrintWriterOutput implements TemplateOutput {
    private final PrintWriter writer;

    public PrintWriterOutput(PrintWriter writer) {
        this.writer = writer;
    }

    @Override
    public void writeContent(String value) {
        writer.write(value);
    }

    @Override
    public void writeContent(String value, int beginIndex, int endIndex) {
        writer.write(value, beginIndex, endIndex - beginIndex);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy