AbstractSourceHandler.java 710 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.aemfd.docmanager.source;

import com.adobe.aemfd.docmanager.source.DocumentSourceHandler;

public abstract class AbstractSourceHandler
implements DocumentSourceHandler {
    protected long length;
    protected String contentType;

    protected AbstractSourceHandler(long length, String contentType) {
        this.length = length;
        this.contentType = contentType;
    }

    public long length() {
        return this.length;
    }

    public String getContentType() {
        return this.contentType;
    }

    protected void doDispose() {
    }

    public void dispose() {
        this.contentType = null;
        this.doDispose();
    }
}