org.alfresco.repo.transfer
Class ContentChunkerImpl

java.lang.Object
  extended by 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.


Constructor Summary
ContentChunkerImpl()
           
 
Method Summary
 void addContent(org.alfresco.service.cmr.repository.ContentData data)
          add content data to the chunker
 void flush()
          flush any remaining content data
 long getChunkSize()
           
 ContentChunkProcessor getHandler()
           
 void setChunkSize(long chunkSize)
           
 void setHandler(ContentChunkProcessor handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentChunkerImpl

public ContentChunkerImpl()
Method Detail

addContent

public void addContent(org.alfresco.service.cmr.repository.ContentData data)
                throws TransferException
Description copied from interface: ContentChunker
add content data to the chunker

Specified by:
addContent in interface ContentChunker
Throws:
TransferException

flush

public void flush()
           throws TransferException
Description copied from interface: ContentChunker
flush any remaining content data

Specified by:
flush in interface ContentChunker
Throws:
TransferException

setChunkSize

public void setChunkSize(long chunkSize)
Specified by:
setChunkSize in interface ContentChunker

getChunkSize

public long getChunkSize()
Specified by:
getChunkSize in interface ContentChunker
Returns:

setHandler

public void setHandler(ContentChunkProcessor handler)
Specified by:
setHandler in interface ContentChunker

getHandler

public ContentChunkProcessor getHandler()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.