Constructor and Description |
---|
JarResource(java.lang.String resourceName,
com.djrapitops.plan.system.file.JarResource.StreamSupplier streamSupplier) |
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 JarResource(java.lang.String resourceName, com.djrapitops.plan.system.file.JarResource.StreamSupplier streamSupplier)
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
.public java.lang.String getResourceName()
Resource
getResourceName
in interface Resource
PlanFiles
.