mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
18 lines
388 B
Java
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());
|
|
}
|
|
}
|