public interface Resource
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
asInputStream()
Get the resource as an InputStream.
|
java.util.List<java.lang.String> |
asLines()
Get the resource as lines.
|
java.lang.String |
asString()
Get the resource as a String with each line separated by CRLF newline characters
\r\n . |
java.lang.String |
getResourceName()
Get the name of this Resource.
|
static boolean |
isTextResource(java.lang.String resourceName)
Check if a resource is a text based file.
|
java.lang.String getResourceName()
PlanFiles
.java.io.InputStream asInputStream() throws java.io.IOException
java.io.IOException
- If the resource is unavailable.java.util.List<java.lang.String> asLines() throws java.io.IOException
java.io.IOException
- If the resource is unavailable.java.lang.String asString() throws java.io.IOException
\r\n
.\r\n
.java.io.IOException
- If the resource is unavailable.static boolean isTextResource(java.lang.String resourceName)
resourceName
- Name of the resource