Class WebResource.ByteResource
- java.lang.Object
-
- com.djrapitops.plan.delivery.web.resource.WebResource.ByteResource
-
- All Implemented Interfaces:
WebResource
- Enclosing interface:
- WebResource
public static final class WebResource.ByteResource extends java.lang.Object implements WebResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.djrapitops.plan.delivery.web.resource.WebResource
WebResource.ByteResource
-
-
Constructor Summary
Constructors Constructor Description ByteResource(byte[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asBytes()
java.io.InputStream
asStream()
java.lang.String
asString()
Return the resource as a UTF-8 String.
-
-
-
Method Detail
-
asBytes
public byte[] asBytes()
- Specified by:
asBytes
in interfaceWebResource
-
asString
public java.lang.String 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
public java.io.InputStream asStream()
- Specified by:
asStream
in interfaceWebResource
-
-