org.redkale.convert.bson

## 类 BsonByteBufferWriter

- java.lang.Object
- - org.redkale.convert.Writer
  - - org.redkale.convert.bson.BsonWriter
    - - org.redkale.convert.bson.BsonByteBufferWriter

-     public class BsonByteBufferWriter
      extends BsonWriter

  详情见: https://redkale.org

- - ### 字段概要

    - ### 从类继承的字段 org.redkale.convert.bson.BsonWriter

      `count, tiny`

    - ### 从类继承的字段 org.redkale.convert.Writer

      `comma`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `BsonByteBufferWriter(boolean tiny, java.util.function.Supplier<java.nio.ByteBuffer> supplier)`
    `` | `BsonByteBufferWriter(java.util.function.Supplier<java.nio.ByteBuffer> supplier)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected int` | `expand(int byteLength)` 扩充指定长度的缓冲区
    `protected boolean` | `recycle()`
    `BsonByteBufferWriter` | `tiny(boolean tiny)`
    `byte[]` | `toArray()`
    `java.nio.ByteBuffer[]` | `toBuffers()`
    `java.lang.String` | `toString()`
    `void` | `writeTo(byte ch)`
    `void` | `writeTo(byte[] chs, int start, int len)`

    - ### 从类继承的方法 org.redkale.convert.bson.BsonWriter

      `count, createPool, needWriteClassName, tiny, writeArrayB, writeArrayE, writeArrayMark, writeBoolean, writeByte, writeChar, writeClassName, writeDouble, writeFieldName, writeFloat, writeInt, writeLong, writeMapB, writeMapE, writeMapMark, writeNull, writeObjectB, writeObjectE, writeShort, writeSmallString, writeString, writeTo`

    - ### 从类继承的方法 org.redkale.convert.Writer

      `writeObjectField, writeObjectNull`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### BsonByteBufferWriter

          public BsonByteBufferWriter(java.util.function.Supplier<java.nio.ByteBuffer> supplier)

    - #### BsonByteBufferWriter

          protected BsonByteBufferWriter(boolean tiny,
                                         java.util.function.Supplier<java.nio.ByteBuffer> supplier)

  - ### 方法详细资料

    - #### toBuffers

          public java.nio.ByteBuffer[] toBuffers()

      覆盖:
        `toBuffers` 在类中 `BsonWriter`

    - #### toArray

          public byte[] toArray()

      覆盖:
        `toArray` 在类中 `BsonWriter`

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `BsonWriter`

    - #### tiny

          public BsonByteBufferWriter tiny(boolean tiny)

      覆盖:
        `tiny` 在类中 `BsonWriter`

    - #### expand

          protected int expand(int byteLength)

      从类复制的说明: `BsonWriter`
      扩充指定长度的缓冲区
      覆盖:
        `expand` 在类中 `BsonWriter`
      参数:
        `byteLength` - 扩容长度
      返回:
        固定0

    - #### writeTo

          public void writeTo(byte[] chs,
                              int start,
                              int len)

      覆盖:
        `writeTo` 在类中 `BsonWriter`

    - #### writeTo

          public void writeTo(byte ch)

      覆盖:
        `writeTo` 在类中 `BsonWriter`

    - #### recycle

          protected boolean recycle()

      覆盖:
        `recycle` 在类中 `BsonWriter`