Writing Strategy
interface WritingStrategy
WritingStrategy is used by the OutputStreamAdapter to determine how writing to the WritableDataProvider is handled. Writing works in three steps:
- prepare is called before any writing takes place.
- write is called until all data has been written.
- finishWriting is called once all data has been written.
It is the WritingStrategys responsibility to call writeToDataProvider and finishWritingToDataProvider at the appropriate times.
Inheritors
Functions
Link copied to clipboard
Called by the OutputStreamAdapter once the last byte was written.
Link copied to clipboard
Called by the OutputStreamAdapter before the first byte is written.