|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.snia.cdmi.v1.domain.CDMIObject
org.jclouds.snia.cdmi.v1.domain.DataObject
public class DataObject
| Nested Class Summary | |
|---|---|
static class |
DataObject.Builder<B extends DataObject.Builder<B>>
|
| Constructor Summary | |
|---|---|
protected |
DataObject(DataObject.Builder<?> builder)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.jclouds.snia.cdmi.v1.domain.CDMIObject |
|---|
clone, getACLMetadata, getMetadata, getObjectID, getObjectName, getObjectType, getParentURI, getSystemMetadata, getUserMetadata, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DataObject(DataObject.Builder<?> builder)
| Method Detail |
|---|
public static DataObject.Builder<?> builder()
public DataObject.Builder<?> toBuilder()
toBuilder in class CDMIObjectpublic 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 set
public byte[] getValueAsByteArray()
public byte[] getValueAsByteArray(Charset charset)
charset - value character set
public File getValueAsFile(File destDir)
throws IOException
destDir - destination directory
IOException
public File getValueAsFile(File destDir,
Charset charset)
throws IOException
charset - value character set
IOExceptionpublic boolean equals(Object o)
equals in class CDMIObjectpublic int hashCode()
hashCode in class CDMIObjectpublic com.google.common.base.Objects.ToStringHelper string()
string in class CDMIObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||