use StringBufferInputStream to pipe message in process