Content

Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart

All Implemented Interfaces: java.io.Closeable

public abstract class Content extends ContentPart implements Closeable

Represents a content where a watermark can be placed.

Constructors

Constructor Description
Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)

Methods

Method Description
getWatermarkerSettings()
getDocumentInfo()
getFileType()
getSearchableObjects()
setSearchableObjects(SearchableObjects value)
getStream()
save(String filePath)
save(String filePath, SaveOptions saveOptions)
save(OutputStream stream)
save(OutputStream stream, SaveOptions saveOptions)
dispose()
performSave(String filePath)
performSave(OutputStream stream)
performSave(String filePath, SaveOptions saveOptions)
performSave(OutputStream stream, SaveOptions saveOptions)
registerDisposableResource(System.IDisposable resource)
getInfo(String filePath)
getInfo(System.IO.Stream stream)
close() Disposes the current instance.
add(Watermark watermark, WatermarkOptions options)
generatePreview(PreviewOptions previewOptions)

Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)

public Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)

Parameters:

Parameter Type Description
stream com.groupdocs.watermark.internal.StreamContainer
strategyManager com.groupdocs.watermark.internal.IStrategyManager
loadOptions LoadOptions
watermarkerSettings WatermarkerSettings

getWatermarkerSettings()

public final WatermarkerSettings getWatermarkerSettings()

Returns: WatermarkerSettings

getDocumentInfo()

public abstract IDocumentInfo getDocumentInfo()

Returns: IDocumentInfo

getFileType()

public abstract FileType getFileType()

Returns: FileType

getSearchableObjects()

public final SearchableObjects getSearchableObjects()

Returns: SearchableObjects

setSearchableObjects(SearchableObjects value)

public final void setSearchableObjects(SearchableObjects value)

Parameters:

Parameter Type Description
value SearchableObjects

getStream()

public final StreamContainer getStream()

Returns: com.groupdocs.watermark.internal.StreamContainer

save(String filePath)

public final void save(String filePath)

Parameters:

Parameter Type Description
filePath java.lang.String

save(String filePath, SaveOptions saveOptions)

public final void save(String filePath, SaveOptions saveOptions)

Parameters:

Parameter Type Description
filePath java.lang.String
saveOptions SaveOptions

save(OutputStream stream)

public final void save(OutputStream stream)

Parameters:

Parameter Type Description
stream java.io.OutputStream

save(OutputStream stream, SaveOptions saveOptions)

public final void save(OutputStream stream, SaveOptions saveOptions)

Parameters:

Parameter Type Description
stream java.io.OutputStream
saveOptions SaveOptions

dispose()

public final void dispose()

performSave(String filePath)

public abstract void performSave(String filePath)

Parameters:

Parameter Type Description
filePath java.lang.String

performSave(OutputStream stream)

public abstract void performSave(OutputStream stream)

Parameters:

Parameter Type Description
stream java.io.OutputStream

performSave(String filePath, SaveOptions saveOptions)

public abstract void performSave(String filePath, SaveOptions saveOptions)

Parameters:

Parameter Type Description
filePath java.lang.String
saveOptions SaveOptions

performSave(OutputStream stream, SaveOptions saveOptions)

public abstract void performSave(OutputStream stream, SaveOptions saveOptions)

Parameters:

Parameter Type Description
stream java.io.OutputStream
saveOptions SaveOptions

registerDisposableResource(System.IDisposable resource)

public final void registerDisposableResource(System.IDisposable resource)

Parameters:

Parameter Type Description
resource com.aspose.ms.System.IDisposable

getInfo(String filePath)

public static InfoInternal getInfo(String filePath)

Parameters:

Parameter Type Description
filePath java.lang.String

Returns: com.groupdocs.watermark.internal.InfoInternal

getInfo(System.IO.Stream stream)

public static InfoInternal getInfo(System.IO.Stream stream)

Parameters:

Parameter Type Description
stream com.aspose.ms.System.IO.Stream

Returns: com.groupdocs.watermark.internal.InfoInternal

close()

public final void close()

Disposes the current instance.

add(Watermark watermark, WatermarkOptions options)

public abstract void add(Watermark watermark, WatermarkOptions options)

Parameters:

Parameter Type Description
watermark Watermark
options WatermarkOptions

generatePreview(PreviewOptions previewOptions)

public abstract void generatePreview(PreviewOptions previewOptions)

Parameters:

Parameter Type Description
previewOptions PreviewOptions