public interface IDocumentFactory
| 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,
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(String filePath,
LoadOptions loadOptions,
WatermarkerSettings settings)
Loads a new content from the specified file.
|
<TDocument extends Content> TDocument load(Class<TDocument> documentType, InputStream stream, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified stream.
stream - 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.<TDocument extends Content> TDocument load(Class<TDocument> documentType, String filePath, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified file.
filePath - 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.Content load(InputStream stream, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified stream.
stream - 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.Content load(String filePath, LoadOptions loadOptions, WatermarkerSettings settings)
Loads a new content from the specified file.
filePath - 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.