/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.lang.StringBuffer
 *  java.lang.Throwable
 */
package com.google.code.microlog4android.format;

import com.google.code.microlog4android.Level;
import com.google.code.microlog4android.format.Formatter;

public final class SimpleFormatter
implements Formatter {
    public static final String DEFAULT_DELIMITER = "-";
    private static final int INITIAL_BUFFER_SIZE = 256;
    StringBuffer buffer = new StringBuffer(256);
    private String delimiter = "-";

    @Override
    public String format(String string2, String string3, long l, Level level, Object object, Throwable throwable) {
        if (this.buffer.length() > 0) {
            this.buffer.delete(0, this.buffer.length());
        }
        if (string2 != null) {
            this.buffer.append(string2);
            this.buffer.append(' ');
        }
        this.buffer.append(l);
        this.buffer.append(':');
        if (level != null) {
            this.buffer.append('[');
            this.buffer.append((Object)level);
            this.buffer.append(']');
        }
        if (object != null) {
            this.buffer.append(this.delimiter);
            this.buffer.append(object);
        }
        if (throwable != null) {
            this.buffer.append(this.delimiter);
            this.buffer.append((Object)throwable);
        }
        return this.buffer.toString();
    }

    public String getDelimiter() {
        return this.delimiter;
    }

    @Override
    public String[] getPropertyNames() {
        return null;
    }

    public void setDelimeter(String string2) {
        this.delimiter = string2;
    }

    @Override
    public void setProperty(String string2, String string3) {
    }
}

