com.afrozaar.wordpress.wpapi.v2.util.FilenameWrapperByteArrayResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wp-api-v2-client-java Show documentation
Show all versions of wp-api-v2-client-java Show documentation
A Java client implementation to the WordPress WP-API v2 plugin.
package com.afrozaar.wordpress.wpapi.v2.util;
import org.springframework.core.io.ByteArrayResource;
public class FilenameWrapperByteArrayResource extends ByteArrayResource {
final String fileName;
public FilenameWrapperByteArrayResource(byte[] byteArray, String fileName) {
super(byteArray);
this.fileName = fileName;
}
public FilenameWrapperByteArrayResource(byte[] byteArray, String description, String fileName) {
super(byteArray, description);
this.fileName = fileName;
}
@Override
public String getFilename() {
return fileName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy