public class DataObject extends CDMIObject
Modifier and Type | Class and Description |
---|---|
static class |
DataObject.Builder<B extends DataObject.Builder<B>> |
Modifier | Constructor and Description |
---|---|
protected |
DataObject(DataObject.Builder<?> builder) |
Modifier and Type | Method and Description |
---|---|
static DataObject.Builder<?> |
builder() |
boolean |
equals(Object o) |
String |
getMimetype()
get dataObject's mimetype.
|
byte[] |
getValueAsByteArray()
get dataObject's value as a ByteArray value character set is Charsets.UTF_8
|
byte[] |
getValueAsByteArray(Charset charset)
get dataObject's value as a InputStream
|
File |
getValueAsFile(File destDir)
get dataObject's value as a File value character set is Charsets.UTF_8
|
File |
getValueAsFile(File destDir,
Charset charset)
get dataObject's value as a File
|
com.google.common.io.InputSupplier<ByteArrayInputStream> |
getValueAsInputSupplier()
get dataObject's value as a InputStream value character set is Charsets.UTF_8
|
com.google.common.io.InputSupplier<ByteArrayInputStream> |
getValueAsInputSupplier(Charset charset)
get dataObject's value as a InputStream
|
String |
getValueAsString()
get dataObject's value as a String
|
int |
hashCode() |
com.google.common.base.Objects.ToStringHelper |
string() |
DataObject.Builder<?> |
toBuilder() |
clone, getACLMetadata, getMetadata, getObjectID, getObjectName, getObjectType, getParentURI, getSystemMetadata, getUserMetadata, toString
protected DataObject(DataObject.Builder<?> builder)
public static DataObject.Builder<?> builder()
public DataObject.Builder<?> toBuilder()
toBuilder
in class CDMIObject
public String getMimetype()
public String getValueAsString()
public com.google.common.io.InputSupplier<ByteArrayInputStream> getValueAsInputSupplier()
public com.google.common.io.InputSupplier<ByteArrayInputStream> getValueAsInputSupplier(Charset charset)
charset
- value character setpublic byte[] getValueAsByteArray()
public byte[] getValueAsByteArray(Charset charset)
charset
- value character setpublic File getValueAsFile(File destDir) throws IOException
destDir
- destination directoryIOException
public File getValueAsFile(File destDir, Charset charset) throws IOException
charset
- value character setIOException
public boolean equals(Object o)
equals
in class CDMIObject
public int hashCode()
hashCode
in class CDMIObject
public com.google.common.base.Objects.ToStringHelper string()
string
in class CDMIObject
Copyright © 2009-2013 jclouds. All Rights Reserved.