Referencing the original thread, the additional method seemed useful.
Ready for review.
I applied the patch, with the only changes being for the new interface and delegate from write(String) to your new method. Please take a look and make sure you're still okay with this.
Having problems applying the patch. Is the patch made from sandbox? (latest on sandbox/trunk)?
It's not a big deal this time, because the code changes are small. But its probably a good idea to rebase the patch