* @throws IOException if there was a problem reading from the stream
*/
public Array readArray( InputStream stream ) throws IOException {
// Create an object so that this reader is thread safe ...
DocumentValueFactory valueFactory = VALUE_FACTORY;
Reader reader = new Reader(new BsonDataInput(new DataInputStream(stream)), valueFactory);
reader.startArray();
return (Array)reader.endDocument();
}