Implement support for stream-based data handling (STOX-21)