Add setStreamData with package visibility for testing