public class BserSerializer extends Object
https://facebook.github.io/watchman/docs/bser.html
Constructor and Description |
---|
BserSerializer() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
serializeToBuffer(Object value,
ByteBuffer buffer)
Serializes an object using BSER encoding.
|
void |
serializeToStream(Object value,
OutputStream outputStream)
Serializes an object using BSER encoding to the stream.
|
public void serializeToStream(Object value, OutputStream outputStream) throws IOException
IOException
public ByteBuffer serializeToBuffer(Object value, ByteBuffer buffer) throws IOException
After returning, buffer.position() is advanced past the last encoded byte.
IOException