signal-cli/src/main/java/org/asamk/signal/PlainTextWriter.java
2021-08-08 17:32:55 +02:00

18 lines
388 B
Java

package org.asamk.signal;
import java.util.function.Consumer;
public interface PlainTextWriter extends OutputWriter {
void println(String format, Object... args);
PlainTextWriter indentedWriter();
default void println() {
println("");
}
default void indent(final Consumer<PlainTextWriter> subWriter) {
subWriter.accept(indentedWriter());
}
}