Package com.rayrobdod.binaryJSON.parser

These are the specific operations related to processing BSON files.

See: Description

Package com.rayrobdod.binaryJSON.parser Description

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();