Package com.djrapitops.plan.storage.file
Class StringResource
java.lang.Object
com.djrapitops.plan.storage.file.StringResource
- All Implemented Interfaces:
Resource
-
Method Details
-
getResourceName
Description copied from interface:Resource
Get the name of this Resource.- Specified by:
getResourceName
in interfaceResource
- Returns:
- Relative file path given to
PlanFiles
.
-
asInputStream
Description copied from interface:Resource
Get the resource as an InputStream.- Specified by:
asInputStream
in interfaceResource
- Returns:
- InputStream of the resource, not closed automatically.
-
asLines
Description copied from interface:Resource
Get the resource as lines. -
asString
Description copied from interface:Resource
Get the resource as a String with each line separated by CRLF newline characters\r\n
. -
asBytes
public byte[] asBytes()
-