com.xlrit.gears.base.content.Content Maven / Gradle / Ivy
package com.xlrit.gears.base.content;
import org.springframework.core.io.InputStreamSource;
public interface Content extends InputStreamSource {
String getId();
String getFilename();
String getContentType();
int getSize();
byte[] getData(); // TODO throws IOException?
default ContentRef toReference() {
return new ContentRef(getId(), getFilename(), getContentType());
}
}