saveToStream

fun saveToStream(stream: OutputStream, asBinary: Boolean)

Saves this instance to a given OutputStream

Parameters

stream

The OutputStream to save to.

asBinary

If set to true, saves this instance as binary.