| java.lang.Object | |
| ↳ | com.pspdfkit.document.providers.DirectWritingStrategy |
A WritingStrategy that immediately writes to the WritableDataProvider.
| 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
| |||||||||||
Called by the OutputStreamAdapter once the last byte was written.
You should clear your reference to the OutputStreamAdapter at this time.
| IOException |
|---|
Called by the OutputStreamAdapter before the first byte is written.
| adapter | The OutputStreamAdapter using this WritingStrategy.
|
|---|
Called by the OutputStreamAdapter with the data that should be written.
| data | The data that should be written. |
|---|
| IOException |
|---|