All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.boot.file.FileProxyManager Maven / Gradle / Ivy

The newest version!
package org.zodiac.boot.file;

import java.io.File;

/**
 * 文件管理类。
 *
 */
public class FileProxyManager {

    private FileProxy defaultFileProxyFactory = new LocalFileProxyFactory();

    private static final FileProxyManager ME = new FileProxyManager();

    public static FileProxyManager me() {
        return ME;
    }

    public FileProxy getDefaultFileProxyFactory() {
        return defaultFileProxyFactory;
    }

    public void setDefaultFileProxyFactory(FileProxy defaultFileProxyFactory) {
        this.defaultFileProxyFactory = defaultFileProxyFactory;
    }

    public String[] path(File file, String dir) {
        return defaultFileProxyFactory.path(file, dir);
    }

    public File rename(File file, String path) {
        return defaultFileProxyFactory.rename(file, path);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy