package ῲ.ᨨ.㿎;

import android.util.Log;
import java.io.Writer;

@Deprecated
/* renamed from: ῲ.ᨨ.㿎.ῲ  reason: contains not printable characters */
/* compiled from: LogWriter */
public class C1867 extends Writer {

    /* renamed from: ʬ  reason: contains not printable characters */
    public StringBuilder f6314 = new StringBuilder(128);

    /* renamed from: ῲ  reason: contains not printable characters */
    public final String f6315;

    public C1867(String str) {
        this.f6315 = str;
    }

    @Override // java.io.Closeable, java.io.Writer, java.lang.AutoCloseable
    public void close() {
        m4828();
    }

    @Override // java.io.Writer, java.io.Flushable
    public void flush() {
        m4828();
    }

    @Override // java.io.Writer
    public void write(char[] cArr, int i, int i2) {
        for (int i3 = 0; i3 < i2; i3++) {
            char c = cArr[i + i3];
            if (c == '\n') {
                m4828();
            } else {
                this.f6314.append(c);
            }
        }
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public final void m4828() {
        if (this.f6314.length() > 0) {
            Log.d(this.f6315, this.f6314.toString());
            StringBuilder sb = this.f6314;
            sb.delete(0, sb.length());
        }
    }
}
