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

org.exparity.io.filesystem.FileSystems Maven / Gradle / Ivy

The newest version!
/*
 * 
 */

package org.exparity.io.filesystem;

/**
 * Factory for obtaining instances of {@link FileSystem}
 * 
 * @author Stewart Bissett
 */
public abstract class FileSystems {

    /**
     * Obtain an instance of a {@link FileSystem} which is backed by the local filesytem on the the machine
     */
    public static FileSystem newInstance() {
        return new FileSystemPhysicalImpl();
    }

    /**
     * Obtain an instance of a {@link FileSystem} which operates purely in memory with no connection to the filesytem
     * and useful for testing
     */
    public static FileSystem newInMemoryInstance() {
        return new FileSystemMemoryImpl();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy