Support for std::stringstream in appendData_ and readData_