NewBSONDecoder
Date: 2015-03-03

org.bson

## Class NewBSONDecoder

- java.lang.Object
- - org.bson.NewBSONDecoder

- All Implemented Interfaces:
    BSONDecoder

      public class NewBSONDecoder
      extends java.lang.Object
      implements BSONDecoder

  A new implementation of the bson decoder.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NewBSONDecoder()`

  - ### Method Summary

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

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NewBSONDecoder

          public NewBSONDecoder()

  - ### Method Detail

    - #### readObject

          public BSONObject readObject(byte[] pData)

      Specified by:
        `readObject` in interface `BSONDecoder`

    - #### readObject

          public BSONObject readObject(java.io.InputStream pIn)
                                throws java.io.IOException

      Specified by:
        `readObject` in interface `BSONDecoder`
      Throws:
        `java.io.IOException`

    - #### decode

          public int decode(byte[] pData,
                   BSONCallback pCallback)

      Specified by:
        `decode` in interface `BSONDecoder`

    - #### decode

          public int decode(java.io.InputStream pIn,
                   BSONCallback pCallback)
                     throws java.io.IOException

      Specified by:
        `decode` in interface `BSONDecoder`
      Throws:
        `java.io.IOException`