See: Description
Interface | Description |
---|---|
BSONDecoder<RetType> |
This takes a String that is properly BSON encoded and turns it into a Java Object
This is basically used to affect the deep parsing of the listeners.
|
BSONParseListener |
A style listener for Parse events.
|
Class | Description |
---|---|
BSONParser |
This is the class that parses DataInput and calls functions in BSONParseListeners based on what it finds.
|
These are the specific operations related to processing BSON files.
The main class of these are the
BSONParser
class and the
BSONParseListener
.
All the other classes in this package implement BSONParseListener.
Standard usagage consists simply of creating a BSONParser, then running any BSONParseListener through
one of the parse methods. The results can then be obtained form the BSONParseListener.
// initiate an instance of a JSONParseListener
SizeJSONParseListener l = new SizeJSONParseListener();
// run JSONParser#parse(JSONParseListener, Reader) using the just-made JSONParseListener and a previously created reader.
BSONParser.parse(l, reader);
// obtain results from the BSONParseListener
int size = l.getCount();