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

com.carrotsearch.console.jcommander.converters.FileConverter Maven / Gradle / Ivy

/*
 * console-tools
 *
 * Copyright (C) 2019, Carrot Search s.c.
 * All rights reserved.
 */
package com.carrotsearch.console.jcommander.converters;

import com.carrotsearch.console.jcommander.IStringConverter;
import java.io.File;

/**
 * Convert a string into a file.
 *
 * @author cbeust
 */
public class FileConverter implements IStringConverter {

  public File convert(String value) {
    return new File(value);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy