public class FetchResult
extends java.lang.Object
Constructor and Description |
---|
FetchResult(ClientMetadata dm,
Bucket fetched) |
FetchResult(FetchResult fr,
Bucket output)
Create a FetchResult with a new Bucket of data, but everything else
the same as the old one.
|
Modifier and Type | Method and Description |
---|---|
Bucket |
asBucket()
Get the result as a Bucket.
|
byte[] |
asByteArray()
Get the result as a simple byte array, even if we don't have it
as one.
|
ClientMetadata |
getMetadata()
Get the client-level metadata.
|
java.lang.String |
getMimeType()
Get the MIME type of the fetched data.
|
long |
size() |
public FetchResult(ClientMetadata dm, Bucket fetched)
public FetchResult(FetchResult fr, Bucket output)
public java.lang.String getMimeType()
public ClientMetadata getMetadata()
public long size()
public byte[] asByteArray() throws java.io.IOException
java.io.IOException
- If it was not possible to read the data.public Bucket asBucket()