public class ContentDescriptorsRegistry extends Object
| Modifier and Type | Method and Description |
|---|---|
<TDocument extends Content> |
getFirstSupportedDescriptor(Class<TDocument> documentType,
StreamContainer stream)
Gets first supported descriptor according to supplied content and content type.
|
IContentDescriptor |
getFirstSupportedDescriptor(StreamContainer stream)
Gets first supported descriptor for supplied content.
|
static ContentDescriptorsRegistry |
getInstance()
Gets an instance of ContentDescriptorsRegistry.
|
public final <TDocument extends Content> IContentDescriptor getFirstSupportedDescriptor(Class<TDocument> documentType, StreamContainer stream)
Gets first supported descriptor according to supplied content and content type.
stream - Stream that contains the content.
TDocument: Expected content type (according to specified file type).
public final IContentDescriptor getFirstSupportedDescriptor(StreamContainer stream)
Gets first supported descriptor for supplied content.
stream - Stream that contains the content.public static ContentDescriptorsRegistry getInstance()
Gets an instance of ContentDescriptorsRegistry.
Copyright © 2026. All rights reserved.