public static final class WebResource.ByteResource extends java.lang.Object implements WebResource
WebResource.ByteResource
Constructor and Description |
---|
ByteResource(byte[] content) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
java.io.InputStream |
asStream() |
java.lang.String |
asString()
Return the resource as a UTF-8 String.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, create
public byte[] asBytes()
asBytes
in interface WebResource
public java.lang.String asString()
WebResource
asString
in interface WebResource
public java.io.InputStream asStream()
asStream
in interface WebResource