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

com.github.zhengframework.configuration.io.FileSystemLocationStrategy Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.configuration.io;

import java.net.URL;
import java.util.Optional;

public class FileSystemLocationStrategy implements FileLocationStrategy {

  @Override
  public Optional locate(FileSystem fileSystem, FileLocator locator) {
    return Optional.ofNullable(fileSystem.locateFromURL(locator.getBasePath(),
        locator.getFileName()));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy