public interface Resource
A loadable resource.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the content as InputStream.loadAsLines(Charset charset) Return the content as lines.loadAsString(Charset charset) Return the content of this resource as a string.location()Return the location of the resource on the classpath (path and filename).name()Return the name of this resource, without the path.
-
Method Details
-
location
String location()Return the location of the resource on the classpath (path and filename). -
name
String name()Return the name of this resource, without the path. -
inputStream
InputStream inputStream()Return the content as InputStream. -
loadAsLines
Return the content as lines. -
loadAsString
Return the content of this resource as a string.
-