Interface XmlOutputBufferHandler

Callbacks to process the content in the output buffer.

interface XmlOutputBufferHandler {
    onClose(): boolean;
    onWrite(buf: Uint8Array): number;
}

Methods

  • The callback for finishing output. Will be invoked when all data were consumed.

    Returns boolean

    Whether the operation is succeeded.

  • The callback for consuming the content.

    Parameters

    • buf: Uint8Array

      The buffer containing output data

    Returns number

    The bytes had been consumed or -1 to indicate errors