com.lowagie.text.rtf.document.output.RtfLoggerSimple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rtf-gen Show documentation
Show all versions of rtf-gen Show documentation
RTF generation library derived from iText-2.1.7. All PDF features and RTF parsing are removed. Code is modernized for Java 8.
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