public abstract class ContentDescriptor<TDocument extends Content> extends Object implements IContentDescriptor
| Constructor and Description |
|---|
ContentDescriptor(Class<TDocument> documentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoad()
Gets a value indicating whether a content of particular type can load supplied content.
|
Content |
createInstance(LoadOptions options,
WatermarkerSettings watermarkerSettings)
Creates an instance of the content.
|
abstract IContentDescriptor |
deepClone()
Creates a copy of this
IContentDescriptor |
com.aspose.ms.System.Type |
getContentType()
Gets the actual type of underlying content.
|
FileType |
getFileType() |
InfoInternal |
getInfo()
Gets information about document stored in the underlying stream.
|
protected StreamContainer |
getStream() |
void |
initFromStream(StreamContainer inputStream)
Initializes the current instance of
IContentDescriptor from specified stream. |
boolean |
isEncrypted() |
protected abstract TDocument |
performCreateInstance(LoadOptions options,
WatermarkerSettings watermarkerSettings)
Creates an instance of content.
|
protected void |
setEncrypted(boolean value) |
protected void |
setFileType(FileType value) |
public final boolean canLoad()
Gets a value indicating whether a content of particular type can load supplied content.
canLoad in interface IContentDescriptorpublic Content createInstance(LoadOptions options, WatermarkerSettings watermarkerSettings)
Creates an instance of the content.
createInstance in interface IContentDescriptoroptions - Additional options to use when loading a content.watermarkerSettings - The settings for customizing Watermarker behaviour.public abstract IContentDescriptor deepClone()
Creates a copy of this IContentDescriptor
deepClone in interface IContentDescriptorIContentDescriptorpublic final com.aspose.ms.System.Type getContentType()
Gets the actual type of underlying content.
getContentType in interface IContentDescriptorpublic final FileType getFileType()
public final InfoInternal getInfo()
IContentDescriptorGets information about document stored in the underlying stream.
getInfo in interface IContentDescriptorprotected final StreamContainer getStream()
public void initFromStream(StreamContainer inputStream)
Initializes the current instance of IContentDescriptor from specified stream.
initFromStream in interface IContentDescriptorinputStream - Stream to initialize current instance from.public final boolean isEncrypted()
protected abstract TDocument performCreateInstance(LoadOptions options, WatermarkerSettings watermarkerSettings)
Creates an instance of content.
options - Additional options to use when loading a content.watermarkerSettings - The settings for customizing Watermarker behaviour.protected final void setEncrypted(boolean value)
protected final void setFileType(FileType value)
Copyright © 2026. All rights reserved.