Class WebResource.ByteResource
java.lang.Object
com.djrapitops.plan.delivery.web.resource.WebResource.ByteResource
- All Implemented Interfaces:
WebResource
- Enclosing interface:
WebResource
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.delivery.web.resource.WebResource
WebResource.ByteResource, WebResource.LazyWebResource
-
Constructor Summary
ConstructorDescriptionByteResource
(byte[] content) ByteResource
(byte[] content, Long lastModified) -
Method Summary
-
Constructor Details
-
ByteResource
public ByteResource(byte[] content) -
ByteResource
-
-
Method Details
-
asBytes
public byte[] asBytes()- Specified by:
asBytes
in interfaceWebResource
-
asString
Description copied from interface:WebResource
Return the resource as a UTF-8 String.- Specified by:
asString
in interfaceWebResource
- Returns:
- The resource in UTF-8.
-
asStream
- Specified by:
asStream
in interfaceWebResource
-
getLastModified
- Specified by:
getLastModified
in interfaceWebResource
-