public interface DocumentContentConverter
This interface provides methods to convert original content to the required one.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(com.edorasware.commons.core.content.ContentMetadata contentMetadata)
Returns whether the given
ContentMetadata can be handled or not. |
com.edorasware.commons.core.util.fp.Pair<com.edorasware.commons.core.content.ContentMetadata,Path> |
convertContent(com.edorasware.commons.core.content.ContentReference contentReference,
com.edorasware.commons.core.content.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.
|
com.edorasware.commons.core.content.ContentMetadata |
getContentMetadata(com.edorasware.commons.core.content.ContentMetadata sourceContentMetadata)
Returns converted
ContentMetadata. |
boolean accept(com.edorasware.commons.core.content.ContentMetadata contentMetadata)
Returns whether the given ContentMetadata can be handled or not.
contentMetadata - the value to decide on whether it can be handledcom.edorasware.commons.core.content.ContentMetadata getContentMetadata(com.edorasware.commons.core.content.ContentMetadata sourceContentMetadata)
Returns converted ContentMetadata.
sourceContentMetadata - source content metadatacom.edorasware.commons.core.util.fp.Pair<com.edorasware.commons.core.content.ContentMetadata,Path> convertContent(com.edorasware.commons.core.content.ContentReference contentReference, com.edorasware.commons.core.content.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.