package jxl.biff.drawing;

import common.Logger;

/* JADX INFO: loaded from: classes.dex */
abstract class EscherRecord {
    protected static final int HEADER_LENGTH = 8;
    static /* synthetic */ Class class$jxl$biff$drawing$EscherRecord;
    private static Logger logger;
    private EscherRecordData data;

    static {
        Class clsClass$ = class$jxl$biff$drawing$EscherRecord;
        if (clsClass$ == null) {
            clsClass$ = class$("jxl.biff.drawing.EscherRecord");
            class$jxl$biff$drawing$EscherRecord = clsClass$;
        }
        logger = Logger.getLogger(clsClass$);
    }

    protected EscherRecord(EscherRecordData escherRecordData) {
        this.data = escherRecordData;
    }

    static /* synthetic */ Class class$(String str) {
        try {
            return Class.forName(str);
        } catch (ClassNotFoundException e) {
            throw new NoClassDefFoundError(e.getMessage());
        }
    }

    byte[] getBytes() {
        return this.data.getBytes();
    }

    abstract byte[] getData();

    protected EscherRecordData getEscherData() {
        return this.data;
    }

    protected final EscherStream getEscherStream() {
        return this.data.getEscherStream();
    }

    protected final int getInstance() {
        return this.data.getInstance();
    }

    public int getLength() {
        return this.data.getLength() + 8;
    }

    protected final int getPos() {
        return this.data.getPos();
    }

    protected int getStreamLength() {
        return this.data.getStreamLength();
    }

    public EscherRecordType getType() {
        return this.data.getType();
    }

    protected void setContainer(boolean z) {
        this.data.setContainer(z);
    }

    final byte[] setHeaderData(byte[] bArr) {
        return this.data.setHeaderData(bArr);
    }

    protected final void setInstance(int i2) {
        this.data.setInstance(i2);
    }

    protected final void setVersion(int i2) {
        this.data.setVersion(i2);
    }

    protected EscherRecord(EscherRecordType escherRecordType) {
        this.data = new EscherRecordData(escherRecordType);
    }
}
