BSONDecoder
Date: 2015-03-03

org.bson

## Interface BSONDecoder

- All Known Implementing Classes:
    BasicBSONDecoder, NewBSONDecoder

      public interface BSONDecoder

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `decode(byte[] b, BSONCallback callback)`
    `int` | `decode(java.io.InputStream in, BSONCallback callback)`
    `BSONObject` | `readObject(byte[] b)`
    `BSONObject` | `readObject(java.io.InputStream in)`

- - ### Method Detail

    - #### readObject

          BSONObject readObject(byte[] b)

    - #### readObject

          BSONObject readObject(java.io.InputStream in)
                                throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### decode

          int decode(byte[] b,
                   BSONCallback callback)

    - #### decode

          int decode(java.io.InputStream in,
                   BSONCallback callback)
                     throws java.io.IOException

      Throws:
        `java.io.IOException`