public interface ContentWriter
| 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 writes the ChunkableContent to the arg space.
|
ChunksManifest |
write(String spaceId,
ChunkableContent chunkable,
Map<String,String> contentProperties)
This method writes the ChunkableContent to the arg space.
|
String |
writeSingle(String spaceId,
String chunkChecksum,
ChunkInputStream chunk)
This method writes the arg Chunk to the arg space.
|
String |
writeSingle(String spaceId,
String chunkChecksum,
ChunkInputStream chunk,
Map<String,String> properties)
This method writes the arg Chunk to the arg space.
|
ChunksManifest write(String spaceId, ChunkableContent chunkable) throws NotFoundException
spaceId - destination where arg chunkable content will be writtenchunkable - content to be writtenNotFoundException - on errorChunksManifest write(String spaceId, ChunkableContent chunkable, Map<String,String> contentProperties) throws NotFoundException
spaceId - destination where arg chunkable content will be writtenchunkable - content to be writtencontentProperties - user defined properties to be stored with chunkable contentNotFoundException - on errorString writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk, Map<String,String> properties) throws NotFoundException
spaceId - destination where arg chunk content will be writtenchunkChecksum - md5 checksum of the chunk if known, null otherwisechunk - content to be writtenproperties - user-defined properties for the contentNotFoundException - on errorString writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk) throws NotFoundException
spaceId - destination where arg chunk content will be writtenchunkChecksum - md5 checksum of the chunk if known, null otherwisechunk - content to be writtenproperties - user-defined properties for the contentNotFoundException - on errorvoid ignore(String spaceId, String contentId, long contentSize)
spaceId - destination where arg content was assigned to be writtencontentId - of contentcontentSize - of contentList<AddContentResult> getResults()
Copyright © 2009-2013 DuraSpace. All Rights Reserved.