public interface ContentChunker
Call the addContent method to add ContentData to the chunker.
Call the setHandler method to set the handler to process chunks of content.
Call the flush() method after the last call to addContent to flush the remaining buffered content.
Modifier and Type | Method and Description |
---|---|
void |
addContent(org.alfresco.service.cmr.repository.ContentData data)
add content data to the chunker
|
void |
flush()
flush any remaining content data
|
long |
getChunkSize() |
void |
setChunkSize(long chunkSize) |
void |
setHandler(ContentChunkProcessor handler) |
void addContent(org.alfresco.service.cmr.repository.ContentData data) throws TransferException
TransferException
void flush() throws TransferException
TransferException
void setChunkSize(long chunkSize)
chunkSize
- longlong getChunkSize()
void setHandler(ContentChunkProcessor handler)
handler
- ContentChunkProcessorCopyright © 2005–2017 Alfresco Software. All rights reserved.