com.redis.riot.file.FilenameInputStreamResource Maven / Gradle / Ivy
package com.redis.riot.file;
import java.io.InputStream;
import org.springframework.core.io.InputStreamResource;
public class FilenameInputStreamResource extends InputStreamResource {
private final String filename;
public FilenameInputStreamResource(InputStream inputStream, String filename, String description) {
super(inputStream, description);
this.filename = filename;
}
@Override
public String getFilename() {
return filename;
}
}