Class PlainFileBuilder.DefaultPlainFileBuilder
java.lang.Object
zeroecho.sdk.builders.core.PlainFileBuilder.DefaultPlainFileBuilder
- All Implemented Interfaces:
DataContentBuilder<PlainContent>, PlainFileBuilder
- Enclosing interface:
PlainFileBuilder
public static final class PlainFileBuilder.DefaultPlainFileBuilder
extends Object
implements PlainFileBuilder
Default implementation of the
PlainFileBuilder interface.
Builds a PlainFile instance using the specified URL.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlainFileBuilder
PlainFileBuilder.DefaultPlainFileBuilder -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean encrypt) Constructs and returns a newDataContentinstance based on the builder's current configuration.Sets the URL of the file to be used as the plain content source.
-
Method Details
-
url
Description copied from interface:PlainFileBuilderSets the URL of the file to be used as the plain content source.- Specified by:
urlin interfacePlainFileBuilder- Parameters:
url- the URL of the file; must not benull- Returns:
- this builder instance
-
build
Description copied from interface:DataContentBuilderConstructs and returns a newDataContentinstance based on the builder's current configuration.- Specified by:
buildin interfaceDataContentBuilder<PlainContent>- Parameters:
encrypt- whether the resultingDataContentshould be configured for encryption (true) or decryption (false). In encryption mode, additional headers or metadata may be inserted into the stream which must be retained for successful decryption.- Returns:
- the constructed
DataContentinstance
-