org.springframework.core.io.ByteArrayResourceCustom Maven / Gradle / Ivy
The newest version!
package org.springframework.core.io;
public class ByteArrayResourceCustom extends org.springframework.core.io.ByteArrayResource {
private final String filename;
public ByteArrayResourceCustom(byte[] byteArray, String filename) {
super(byteArray);
this.filename = filename;
}
public ByteArrayResourceCustom(byte[] byteArray, String description, String filename) {
super(byteArray, description);
this.filename = filename;
}
@Override
public String getFilename() {
return this.filename;
}
}