如何从字符串生成流?

Stream s = GenerateStreamFromString("a,b \n c,d");

答案