public class StringCachingResource extends java.lang.Object implements Resource
ResourceCache
.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.
|
public java.lang.String getResourceName()
Resource
getResourceName
in interface Resource
PlanFiles
.public java.io.InputStream asInputStream() throws java.io.IOException
Resource
asInputStream
in interface Resource
java.io.IOException
- If the resource is unavailable.public java.util.List<java.lang.String> asLines() throws java.io.IOException
Resource
public java.lang.String asString() throws java.io.IOException
Resource
\r\n
.