This commit is contained in:
@@ -21,6 +21,7 @@ public final class BsonByteBufferWriter extends BsonWriter {
|
|||||||
private int index;
|
private int index;
|
||||||
|
|
||||||
public BsonByteBufferWriter(Supplier<ByteBuffer> supplier) {
|
public BsonByteBufferWriter(Supplier<ByteBuffer> supplier) {
|
||||||
|
super((byte[]) null);
|
||||||
this.supplier = supplier;
|
this.supplier = supplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ public class BsonWriter implements Writer {
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected BsonWriter(byte[] bs) {
|
||||||
|
this.content = bs;
|
||||||
|
}
|
||||||
|
|
||||||
public BsonWriter() {
|
public BsonWriter() {
|
||||||
this(defaultSize);
|
this(defaultSize);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user