Stream.writeToStream

long writeToStream(gmime.stream.Stream dest)

Attempts to write the source stream to the destination stream.

Parameters

destdestination stream

Returns

the number of bytes written or %-1 on fail.