All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xlrit.gears.base.content.Content Maven / Gradle / Ivy

There is a newer version: 1.17.6
Show newest version
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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy