public abstract class OneAcceptContentConverter extends Object implements DocumentContentConverter
This class implements accept method for One environment (Microsoft docs are stored as octet streams)
| Constructor and Description |
|---|
OneAcceptContentConverter(Iterable<? extends String> nameContentTypeExtensions,
Set<? extends String> acceptableContentTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ContentMetadata contentMetadata)
Returns whether the given
ContentMetadata can be handled or not. |
Set<com.google.common.net.MediaType> |
getAcceptableContentTypes()
Gets the acceptable content types for the document content converter as input.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertContent, getContentMetadatapublic OneAcceptContentConverter(Iterable<? extends String> nameContentTypeExtensions, Set<? extends String> acceptableContentTypes)
nameContentTypeExtensions - extension accepted in the case when document content type is application/octet-streamacceptableContentTypes - set of content types which are acceptedpublic boolean accept(ContentMetadata contentMetadata)
DocumentContentConverterReturns whether the given ContentMetadata can be handled or not.
accept in interface DocumentContentConvertercontentMetadata - the value to decide on whether it can be handledpublic Set<com.google.common.net.MediaType> getAcceptableContentTypes()
DocumentContentConverterGets the acceptable content types for the document content converter as input.
getAcceptableContentTypes in interface DocumentContentConverterCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.