org.alfresco.repo.content.transform
Class BinaryPassThroughContentTransformer
java.lang.Object
org.alfresco.repo.content.transform.ContentTransformerHelper
org.alfresco.repo.content.transform.AbstractContentTransformerLimits
org.alfresco.repo.content.transform.AbstractContentTransformer2
org.alfresco.repo.content.transform.BinaryPassThroughContentTransformer
- All Implemented Interfaces:
- ContentWorker, ContentTransformer, org.springframework.beans.factory.BeanNameAware
public class BinaryPassThroughContentTransformer
- extends AbstractContentTransformer2
Allows direct streaming from source to target when the respective mimetypes
are identical, except where the mimetype is text.
Text has to be transformed based on the encoding even if the mimetypes don't
reflect it.
- See Also:
StringExtractingContentTransformer
|
Method Summary |
boolean |
isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
|
protected void |
transformInternal(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
TransformationOptions options)
Method to be implemented by subclasses wishing to make use of the common infrastructural code
provided by this class. |
| Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformerLimits |
getBeanName, getLimits, getLimits, getLimits, getMaxPages, getMaxSourceSizeKBytes, getMimetypeLimits, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getTimeoutMs, isPageLimitSupported, isTransformable, isTransformableSize, setBeanName, setLimits, setMaxPages, setMaxSourceSizeKBytes, setMimetypeLimits, setPageLimit, setPageLimitsSuported, setReaderLimits, setReadLimitKBytes, setReadLimitTimeMs, setTimeoutMs, setTransformerDebug |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BinaryPassThroughContentTransformer
public BinaryPassThroughContentTransformer()
transformInternal
protected void transformInternal(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
TransformationOptions options)
throws java.lang.Exception
- Description copied from class:
AbstractContentTransformer2
- Method to be implemented by subclasses wishing to make use of the common infrastructural code
provided by this class.
- Specified by:
transformInternal in class AbstractContentTransformer2
- Parameters:
reader - the source of the content to transformwriter - the target to which to write the transformed contentoptions - a map of options to use when performing the transformation. The map
will never be null.
- Throws:
java.lang.Exception - exceptions will be handled by this class - subclasses can throw anything
isTransformable
public boolean isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.