public class

DirectWritingStrategy

extends Object
implements WritingStrategy
java.lang.Object
   ↳ com.pspdfkit.document.providers.DirectWritingStrategy

Class Overview

A WritingStrategy that immediately writes to the WritableDataProvider.

Summary

Public Constructors
DirectWritingStrategy()
Public Methods
void finishWriting()
Called by the OutputStreamAdapter once the last byte was written.
void prepare(OutputStreamAdapter adapter)
Called by the OutputStreamAdapter before the first byte is written.
void write(byte[] data)
Called by the OutputStreamAdapter with the data that should be written.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pspdfkit.document.providers.WritingStrategy

Public Constructors

public DirectWritingStrategy ()

Public Methods

public void finishWriting ()

Called by the OutputStreamAdapter once the last byte was written. You should clear your reference to the OutputStreamAdapter at this time.

Throws
IOException

public void prepare (OutputStreamAdapter adapter)

Called by the OutputStreamAdapter before the first byte is written.

Parameters
adapter The OutputStreamAdapter using this WritingStrategy.

public void write (byte[] data)

Called by the OutputStreamAdapter with the data that should be written.

Parameters
data The data that should be written.
Throws
IOException