public class BasicBSONEncoder extends java.lang.Object implements BSONEncoder
Constructor and Description |
---|
BasicBSONEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
done() |
byte[] |
encode(BSONObject o) |
int |
putObject(BSONObject o)
Encodes a
BSONObject . |
void |
set(OutputBuffer out) |
void |
writeCString(java.lang.String s) |
void |
writeInt(int x) |
void |
writeLong(long x) |
public byte[] encode(BSONObject o)
encode
in interface BSONEncoder
public void set(OutputBuffer out)
set
in interface BSONEncoder
public void done()
done
in interface BSONEncoder
public int putObject(BSONObject o)
BSONObject
.
This is for the higher level api callsputObject
in interface BSONEncoder
o
- the object to encodepublic void writeInt(int x)
public void writeLong(long x)
public void writeCString(java.lang.String s)