public class SwiftStoredObject extends Object implements ListSubject, DirectoryOrObject
| Constructor and Description |
|---|
SwiftStoredObject(String name) |
public SwiftStoredObject(String name)
public long getBytesUsed()
public Etag getEtag()
public ObjectContentType getContentType()
public Date getLastModified()
public String getName()
getName in interface ListSubjectpublic void metadataSetFromHeaders()
ListSubjectmetadataSetFromHeaders in interface ListSubjectpublic ObjectInformation getInfo()
public SwiftResult<Object> uploadObject(UploadInstructions uploadInstructions)
public SwiftResult<Object> copyFrom(SwiftStoredObject sourceObject)
public SwiftResult<byte[]> downloadObject(DownloadInstructions downloadInstructions)
public SwiftResult<Object> saveMetadata(Collection<? extends Header> headers)
public byte[] getContent()
public ObjectManifest getObjectManifest()
public void setDeleteAt(DeleteAt deleteAt)
public static Collection<DirectoryOrObject> convertToDirectories(Container container, Collection<SwiftStoredObject> objects, String prefix, Character delimiter)
protected StoredObject copyToStoredObject(StoredObject targetObject)
public boolean isObject()
isObject in interface DirectoryOrObjectpublic boolean isDirectory()
isDirectory in interface DirectoryOrObjectpublic Directory getAsDirectory()
getAsDirectory in interface DirectoryOrObjectpublic StoredObject getAsObject()
getAsObject in interface DirectoryOrObjectpublic String getBareName()
getBareName in interface DirectoryOrObjectCopyright © 2012-2016 42 BV. All Rights Reserved.