public static class

OutputStreamAdapter.Builder

extends Object
java.lang.Object
   ↳ com.pspdfkit.document.providers.OutputStreamAdapter.Builder

Class Overview

Creates instances of the OutputStreamAdapter.

Summary

Public Methods
OutputStreamAdapter build()
Builds the OutputStreamAdapter with the configured parameters.
static OutputStreamAdapter.Builder fromDataProvider(WritableDataProvider dataProvider)
Creates a new OutputStreamAdapter.Builder from the passed WritableDataProvider.
OutputStreamAdapter.Builder withWritingStrategy(WritingStrategy writingStrategy)
Sets the WritingStrategy that will be used by the OutputStreamAdapter.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public OutputStreamAdapter build ()

Builds the OutputStreamAdapter with the configured parameters.

Returns

public static OutputStreamAdapter.Builder fromDataProvider (WritableDataProvider dataProvider)

Creates a new OutputStreamAdapter.Builder from the passed WritableDataProvider.

Parameters
dataProvider The data provider to adapt to an OutputStream.
Returns
  • The builder.

public OutputStreamAdapter.Builder withWritingStrategy (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.