package org.joda.time.format;

import java.io.Writer;
import java.util.Locale;
import org.joda.time.DateTimeZone;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public class g implements m {
    private g(f fVar) {
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static m a(f fVar) {
        if (fVar == null) {
            return null;
        }
        return new g(fVar);
    }

    @Override // org.joda.time.format.m
    public int estimatePrintedLength() {
        throw null;
    }

    @Override // org.joda.time.format.m
    public void printTo(Appendable appendable, long j10, org.joda.time.a aVar, int i10, DateTimeZone dateTimeZone, Locale locale) {
        if (!(appendable instanceof StringBuffer)) {
            if (appendable instanceof Writer) {
                throw null;
            }
            new StringBuffer(estimatePrintedLength());
            throw null;
        }
        throw null;
    }

    @Override // org.joda.time.format.m
    public void printTo(Appendable appendable, org.joda.time.i iVar, Locale locale) {
        if (!(appendable instanceof StringBuffer)) {
            if (appendable instanceof Writer) {
                throw null;
            }
            new StringBuffer(estimatePrintedLength());
            throw null;
        }
        throw null;
    }
}
