public class DocumentFactory extends Object implements IDocumentFactory
| Constructor and Description |
|---|
DocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
<TDocument extends Content> |
load(Class<TDocument> documentType,
InputStream stream,
LoadOptions loadOptions,
WatermarkerSettings settings)
Loads a new content from the specified stream.
|
<TDocument extends Content> |
load(Class<TDocument> documentType,
com.aspose.ms.System.IO.Stream stream,
LoadOptions loadOptions,
WatermarkerSettings settings) |
<TDocument extends Content> |
load(Class<TDocument> documentType,
String filePath,
LoadOptions loadOptions,
WatermarkerSettings settings)
Loads a new content from the specified file.
|
Content |
load(InputStream stream,
LoadOptions loadOptions,
WatermarkerSettings settings)
Loads a new content from the specified stream.
|
Content |
load(com.aspose.ms.System.IO.Stream stream,
LoadOptions loadOptions,
WatermarkerSettings settings) |
Content |
load(String filePath,
LoadOptions loadOptions,
WatermarkerSettings settings)
Loads a new content from the specified file.
|
public final <TDocument extends Content> TDocument load(Class<TDocument> documentType, InputStream stream, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified stream.
load in interface IDocumentFactorystream - The stream to load content from.loadOptions - Additional options to use when loading a content.settings - Watermarker global settings.documentType - Expected content type (according to specified file type).
TDocument: Expected content type (according to specified stream content).
TDocument class.UnsupportedFileTypeException - Supplied content type is not supported.public final <TDocument extends Content> TDocument load(Class<TDocument> documentType, com.aspose.ms.System.IO.Stream stream, LoadOptions loadOptions, WatermarkerSettings settings)
public final <TDocument extends Content> TDocument load(Class<TDocument> documentType, String filePath, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified file.
load in interface IDocumentFactoryfilePath - The file path to load content from.loadOptions - Additional options to use when loading a content.settings - Watermarker global settings.documentType - Expected content type (according to specified file type).
TDocument: Expected content type (according to specified file type).
TDocument class.UnsupportedFileTypeException - Supplied content type is not supported.public final Content load(InputStream stream, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified stream.
load in interface IDocumentFactorystream - The stream to load content from.loadOptions - Additional options to use when loading a content.settings - Watermarker global settings.Content class.UnsupportedFileTypeException - Supplied content type is not supported.public final Content load(com.aspose.ms.System.IO.Stream stream, LoadOptions loadOptions, WatermarkerSettings settings)
public final Content load(String filePath, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified file.
load in interface IDocumentFactoryfilePath - The file path to load content from.loadOptions - Additional options to use when loading a content.settings - Watermarker global settings.Content class.UnsupportedFileTypeException - Supplied content type is not supported.Copyright © 2026. All rights reserved.