mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
21 lines
405 B
Java
21 lines
405 B
Java
package org.asamk.signal;
|
|
|
|
public interface PlainTextWriter {
|
|
|
|
void println(String format, Object... args);
|
|
|
|
PlainTextWriter indentedWriter();
|
|
|
|
default void println() {
|
|
println("");
|
|
}
|
|
|
|
default void indent(final WriterConsumer subWriter) {
|
|
subWriter.consume(indentedWriter());
|
|
}
|
|
|
|
interface WriterConsumer {
|
|
|
|
void consume(PlainTextWriter writer);
|
|
}
|
|
}
|