public class DuracloudContentWriter extends Object implements ContentWriter
| Constructor and Description |
|---|
DuracloudContentWriter(org.duracloud.client.ContentStore contentStore,
String username) |
DuracloudContentWriter(org.duracloud.client.ContentStore contentStore,
String username,
boolean throwOnError) |
| Modifier and Type | Method and Description |
|---|---|
List<AddContentResult> |
getResults()
This method returns an item-by-item list of results for the write
requests.
|
void |
ignore(String spaceId,
String contentId,
long contentSize)
This method helps with the book-keeping of which files are ignored.
|
ChunksManifest |
write(String spaceId,
ChunkableContent chunkable)
This method implements the ContentWriter interface for writing content
to a DataStore.
|
String |
writeSingle(String spaceId,
String chunkChecksum,
ChunkInputStream chunk)
This method writes a single chunk to the DataStore.
|
public DuracloudContentWriter(org.duracloud.client.ContentStore contentStore,
String username)
public DuracloudContentWriter(org.duracloud.client.ContentStore contentStore,
String username,
boolean throwOnError)
public List<AddContentResult> getResults()
ContentWritergetResults in interface ContentWriterpublic void ignore(String spaceId, String contentId, long contentSize)
ContentWriterignore in interface ContentWriterspaceId - destination where arg content was assigned to be writtencontentId - of contentcontentSize - of contentpublic ChunksManifest write(String spaceId, ChunkableContent chunkable) throws NotFoundException
write in interface ContentWriterspaceId - destination space of arg chunkable contentchunkable - content to be writtenNotFoundException - if space is not foundpublic String writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk) throws NotFoundException
writeSingle in interface ContentWriterspaceId - destination where arg chunk content will be writtenchunkChecksum - md5 checksum of the chunk if known, null otherwisechunk - content to be writtenNotFoundException - if space is not foundCopyright © 2009-2012 DuraSpace. All Rights Reserved.