Adapters that go the other way, to java.io.

These ones are slightly more awkward because they need to do
their own internal buffering.