Same as MessageBufferOutputStream's constructor(need null check?).