public interface DocumentContentConverter
This interface provides methods to convert original content to the required one.
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
accept(ContentMetadata contentMetadata)
Returns whether the given  
ContentMetadata can be handled or not. | 
Pair<ContentMetadata,Path> | 
convertContent(ContentReference contentReference,
              ContentMetadata contentMetadata,
              InputStream sourceContent)
Returns converted document content. 
 | 
Set<com.google.common.net.MediaType> | 
getAcceptableContentTypes()
Gets the acceptable content types for the document content converter as input. 
 | 
ContentMetadata | 
getContentMetadata(ContentMetadata sourceContentMetadata)
Returns converted  
ContentMetadata. | 
boolean accept(ContentMetadata contentMetadata)
Returns whether the given ContentMetadata can be handled or not.
contentMetadata - the value to decide on whether it can be handledContentMetadata getContentMetadata(ContentMetadata sourceContentMetadata)
Returns converted ContentMetadata.
sourceContentMetadata - source content metadataPair<ContentMetadata,Path> convertContent(ContentReference contentReference, ContentMetadata contentMetadata, InputStream sourceContent)
Returns converted document content.
contentReference - content reference.contentMetadata - content metadata.sourceContent - content input stream.Set<com.google.common.net.MediaType> getAcceptableContentTypes()
Gets the acceptable content types for the document content converter as input.
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.