com.ftpix.sherdogparser.PictureProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sherdog-parser Show documentation
Show all versions of sherdog-parser Show documentation
Library that parse sherdog website to provide java MMA database
package com.ftpix.sherdogparser;
import com.ftpix.sherdogparser.models.Fighter;
import java.io.IOException;
/**
* Function to process the fighter pictures, the parameter is going to be the sherdog picture URL.
* With this function you can for example upload the picture somewhere else (example S3) and return the S3 URL.
*
*
*/
@FunctionalInterface
public interface PictureProcessor {
/**
* Process a http url of a picture (most likely the fighter picture) and return another string. (other url, file path if you want to save the file on disk etc...
* @param url the picture URL
* @return the new value that will be set to {@link Fighter#picture}
*/
String process(String url, Fighter fighter) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy