This commit is contained in:
kamhung
2015-11-10 17:37:46 +08:00
parent 61bedd2c47
commit e3e6897fad
2 changed files with 5 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ public final class BsonByteBufferWriter extends BsonWriter {
private int index;
public BsonByteBufferWriter(Supplier<ByteBuffer> supplier) {
super((byte[]) null);
this.supplier = supplier;
}

View File

@@ -49,6 +49,10 @@ public class BsonWriter implements Writer {
return len;
}
protected BsonWriter(byte[] bs) {
this.content = bs;
}
public BsonWriter() {
this(defaultSize);
}