package org.dromara.x.file.storage.core.tika;

import org.apache.tika.Tika;

/**
 * 默认的 Tika 工厂类
 */
public class DefaultTikaFactory implements TikaFactory {
    private volatile Tika tika;

    @Override
    public Tika getTika() {
        if (tika == null) {
            synchronized (this) {
                if (tika == null) {
                    tika = new Tika();
                }
            }
        }
        return tika;
    }
}
