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

play.libs.ws.FileParam Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
package play.libs.ws;

import java.io.File;

public class FileParam {
    public File file;
    public String paramName;

    public FileParam(File file, String name) {
        this.file = file;
        this.paramName = name;
    }

    public static FileParam[] getFileParams(File[] files) {
        FileParam[] filesp = new FileParam[files.length];
        for (int i = 0; i < files.length; i++) {
            filesp[i] = new FileParam(files[i], files[i].getName());
        }
        return filesp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy