org.bndtools.templating.Resource Maven / Gradle / Ivy
The newest version!
package org.bndtools.templating;
import java.io.IOException;
import java.io.InputStream;
public interface Resource {
/**
* Return the type of the resource.
*/
ResourceType getType();
/**
* Get the content of the resource. May return null
if the
* resource type is not {@link ResourceType#File}.
*
* @throws IOException
*/
InputStream getContent() throws IOException;
/**
* Get the content encoding of the resource.
*/
String getTextEncoding();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy