You can create a MemoryStream from a String and use that in any third-party function that requires a stream. In this case, MemoryStream, with the help of UTF8.GetBytes, provides the functionality of Java's StringStream.
String content = "stuff";
using (MemoryStream stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(content)))
{
Print(stream); //or whatever action you need to perform with the stream
stream.Seek(0, SeekOrigin.Begin); //If you need to use the same stream again, don't forget to reset it.
UseAgain(stream);
}
stream.Seek(0, SeekOrigin.Begin);
string s;
using (var readr = new StreamReader(stream))
{
s = readr.ReadToEnd();
}
//and don't forget to dispose the stream if you created it