Package com.pspdfkit.document.providers
Class OutputStreamAdapter.Builder
-
- All Implemented Interfaces:
public class OutputStreamAdapter.Builder
Creates instances of the OutputStreamAdapter.
-
-
Method Summary
Modifier and Type Method Description static OutputStreamAdapter.Builder
fromDataProvider(@NonNull() WritableDataProvider dataProvider)
Creates a new Builder from the passed WritableDataProvider. OutputStreamAdapter.Builder
withWritingStrategy(@NonNull() WritingStrategy writingStrategy)
Sets the WritingStrategy that will be used by the OutputStreamAdapter. OutputStreamAdapter
build()
Builds the OutputStreamAdapter with the configured parameters. -
-
Method Detail
-
fromDataProvider
@NonNull() static OutputStreamAdapter.Builder fromDataProvider(@NonNull() WritableDataProvider dataProvider)
Creates a new Builder from the passed WritableDataProvider.
- Parameters:
dataProvider
- The data provider to adapt to an OutputStream.- Returns:
The builder.
-
withWritingStrategy
@NonNull() OutputStreamAdapter.Builder withWritingStrategy(@NonNull() WritingStrategy writingStrategy)
Sets the WritingStrategy that will be used by the OutputStreamAdapter. Defaults to a DirectWritingStrategy if nothing is set.
- Parameters:
writingStrategy
- The writing strategy to use.- Returns:
The builder.
-
build
@NonNull() OutputStreamAdapter build()
Builds the OutputStreamAdapter with the configured parameters.
- Returns:
The OutputStreamAdapter that was configured.
-
-
-
-