public class BsonFixLength extends Object
| Constructor and Description |
|---|
BsonFixLength() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fix(File file)
This function fixes the length information in Document / Array types
in a BSON file.
|
public static void fix(File file) throws IOException
The file generated by BsonGenerator does not contain the length
information for Document / Array types. It simplifies document
generation and improves performance.
Even though BsonParser and
Bson4Jackson
etc support this format, utilities such as bsondump do require the
length information.
file - the file to be fixed.IOException - in case of I/O error.Copyright © 2016. All rights reserved.