mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Move Writer creation out of WriterImpls
This commit is contained in:
parent
b5eef3ccad
commit
5dd602614c
4 changed files with 23 additions and 22 deletions
|
@ -2,10 +2,7 @@ package org.asamk.signal;
|
|||
|
||||
import org.slf4j.helpers.MessageFormatter;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.Writer;
|
||||
|
||||
public final class PlainTextWriterImpl implements PlainTextWriter {
|
||||
|
@ -14,8 +11,8 @@ public final class PlainTextWriterImpl implements PlainTextWriter {
|
|||
|
||||
private PlainTextWriter indentedWriter;
|
||||
|
||||
public PlainTextWriterImpl(final OutputStream outputStream) {
|
||||
this.writer = new BufferedWriter(new OutputStreamWriter(outputStream));
|
||||
public PlainTextWriterImpl(final Writer writer) {
|
||||
this.writer = writer;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue