public abstract class OoxmlContentDescriptor<TDocument extends Content> extends ContentDescriptor<TDocument>
| Constructor and Description |
|---|
OoxmlContentDescriptor(Class<TDocument> documentType,
IContentDescriptor nextOoxmlContentDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
checkIfUnknownDocumentTypeException(Exception exception)
Determines whether a thrown exception is UnknownDocumentTypeException (exception type can
differ in various versions of Aspose libraries).
|
Content |
createInstance(LoadOptions options,
WatermarkerSettings watermarkerSettings)
Creates an instance of the content.
|
protected IContentDescriptor |
getNextDescriptor() |
canLoad, deepClone, getContentType, getFileType, getInfo, getStream, initFromStream, isEncrypted, performCreateInstance, setEncrypted, setFileTypepublic OoxmlContentDescriptor(Class<TDocument> documentType, IContentDescriptor nextOoxmlContentDescriptor)
protected abstract boolean checkIfUnknownDocumentTypeException(Exception exception)
Determines whether a thrown exception is UnknownDocumentTypeException (exception type can differ in various versions of Aspose libraries).
exception - Thrown exception.public Content createInstance(LoadOptions options, WatermarkerSettings watermarkerSettings)
Creates an instance of the content.
If it fails, tries to call IContentDescriptor.CreateInstance method
of the next descriptor in the chain.
createInstance in interface IContentDescriptorcreateInstance in class ContentDescriptor<TDocument extends Content>options - Additional options to use when loading a content.watermarkerSettings - The settings for customizing Watermarker behaviour.protected final IContentDescriptor getNextDescriptor()
Copyright © 2026. All rights reserved.