Package io.avaje.classpath.scanner
Interface Resource
-
public interface Resource
A loadable resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreaminputStream()Return the content as InputStream.List<String>loadAsLines(Charset charset)Return the content as lines.StringloadAsString(Charset charset)Return the content of this resource as a string.Stringlocation()Return the location of the resource on the classpath (path and filename).Stringname()Return the name of this resource, without the path.
-
-
-
Method Detail
-
location
String location()
Return the location of the resource on the classpath (path and filename).
-
inputStream
InputStream inputStream()
Return the content as InputStream.
-
loadAsLines
List<String> loadAsLines(Charset charset)
Return the content as lines.
-
loadAsString
String loadAsString(Charset charset)
Return the content of this resource as a string.
-
-