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

com.lowagie.text.rtf.document.output.RtfLoggerSimple Maven / Gradle / Ivy

Go to download

RTF generation library derived from iText-2.1.7. All PDF features and RTF parsing are removed. Code is modernized for Java 8.

There is a newer version: 1.0.5
Show newest version
package com.lowagie.text.rtf.document.output;

import java.io.PrintStream;

public class RtfLoggerSimple implements RtfLogger {

    private final PrintStream output;

    public RtfLoggerSimple(PrintStream output) {
        this.output = output;
    }

    @SuppressWarnings("UseOfSystemOutOrSystemErr")
    public RtfLoggerSimple() {
        this(System.err);
    }

    @Override
    public void warn(String message) {
        output.println(message);
    }

    @Override
    public void error(Throwable error) {
        error.printStackTrace(output);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy