Package org.alfresco.repo.transfer
Class ContentChunkerImpl
- java.lang.Object
-
- org.alfresco.repo.transfer.ContentChunkerImpl
-
- All Implemented Interfaces:
ContentChunker
public class ContentChunkerImpl extends java.lang.Object implements ContentChunker
The Content Chunker Splits Content into "Chunks" of a given size.- Author:
- Mark
-
-
Constructor Summary
Constructors Constructor Description ContentChunkerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContent(org.alfresco.service.cmr.repository.ContentData data)add content data to the chunkervoidflush()flush any remaining content datalonggetChunkSize()ContentChunkProcessorgetHandler()voidsetChunkSize(long chunkSize)voidsetHandler(ContentChunkProcessor handler)
-
-
-
Method Detail
-
addContent
public void addContent(org.alfresco.service.cmr.repository.ContentData data) throws TransferExceptionDescription copied from interface:ContentChunkeradd content data to the chunker- Specified by:
addContentin interfaceContentChunker- Throws:
TransferException
-
flush
public void flush() throws TransferExceptionDescription copied from interface:ContentChunkerflush any remaining content data- Specified by:
flushin interfaceContentChunker- Throws:
TransferException
-
setChunkSize
public void setChunkSize(long chunkSize)
- Specified by:
setChunkSizein interfaceContentChunker- Parameters:
chunkSize- long
-
getChunkSize
public long getChunkSize()
- Specified by:
getChunkSizein interfaceContentChunker- Returns:
- long
-
setHandler
public void setHandler(ContentChunkProcessor handler)
- Specified by:
setHandlerin interfaceContentChunker- Parameters:
handler- ContentChunkProcessor
-
getHandler
public ContentChunkProcessor getHandler()
-
-