public class FilesystemContentWriter extends Object implements ContentWriter
Constructor and Description |
---|
FilesystemContentWriter() |
Modifier and Type | Method and Description |
---|---|
List<AddContentResult> |
getResults()
This method returns the results of the content 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.
|
ChunksManifest |
write(String spaceId,
ChunkableContent chunkable,
Map<String,String> contentProperties)
This method implements the ContentWriter interface for writing content
to a DataStore.
|
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 implements the ContentWriter interface for writing content
to a DataStore.
|
public List<AddContentResult> getResults()
getResults
in interface ContentWriter
public void ignore(String spaceId, String contentId, long contentSize)
ContentWriter
ignore
in interface ContentWriter
spaceId
- destination where arg content was assigned to be writtencontentId
- of contentcontentSize
- of contentpublic ChunksManifest write(String spaceId, ChunkableContent chunkable) throws NotFoundException
write
in interface ContentWriter
spaceId
- destination where arg chunkable content will be writtencontentProperties
- user defined properties to be associated with content.chunkable
- content to be writtenNotFoundException
- on errorpublic ChunksManifest write(String spaceId, ChunkableContent chunkable, Map<String,String> contentProperties) throws NotFoundException
write
in interface ContentWriter
spaceId
- destination where arg chunkable content will be writtencontentProperties
- user defined properties to be associated with content.chunkable
- content to be writtenNotFoundException
- on errorpublic String writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk, Map<String,String> properties) throws NotFoundException
writeSingle
in interface ContentWriter
spaceId
- destination where arg chunk content will be writtenchunk
- content to be writtenproperties
- user-defined properties associated with contentchunkChecksum
- md5 checksum of the chunk if known, null otherwiseNotFoundException
public String writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk) throws NotFoundException
ContentWriter
writeSingle
in interface ContentWriter
spaceId
- destination where arg chunk content will be writtenchunkChecksum
- md5 checksum of the chunk if known, null otherwisechunk
- content to be writtenNotFoundException
- on errorCopyright © 2009–2014 DuraSpace. All rights reserved.