Package com.pspdfkit.document.providers
Class DirectWritingStrategy
-
- All Implemented Interfaces:
-
com.pspdfkit.document.providers.WritingStrategy
public final class DirectWritingStrategy implements WritingStrategy
A WritingStrategy that immediately writes to the WritableDataProvider.
-
-
Constructor Summary
Constructors Constructor Description DirectWritingStrategy()
-
Method Summary
Modifier and Type Method Description Unit
prepare(OutputStreamAdapter adapter)
Called by the OutputStreamAdapter before the first byte is written. Unit
write(ByteArray data)
Called by the OutputStreamAdapter with the data that should be written. Unit
finishWriting()
Called by the OutputStreamAdapter once the last byte was written. -
-
Method Detail
-
prepare
Unit prepare(OutputStreamAdapter adapter)
Called by the OutputStreamAdapter before the first byte is written.
- Parameters:
adapter
- The OutputStreamAdapter using this WritingStrategy.
-
write
Unit write(ByteArray data)
Called by the OutputStreamAdapter with the data that should be written.
- Parameters:
data
- The data that should be written.
-
finishWriting
Unit finishWriting()
Called by the OutputStreamAdapter once the last byte was written. You should clear your reference to the OutputStreamAdapter at this time.
-
-
-
-